mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
improve package gerror
This commit is contained in:
@ -47,6 +47,9 @@ func (err *Error) Error() string {
|
||||
return ""
|
||||
}
|
||||
errStr := err.text
|
||||
if errStr == "" {
|
||||
errStr = Message(err.code)
|
||||
}
|
||||
if err.error != nil {
|
||||
if err.text != "" {
|
||||
errStr += ": "
|
||||
|
||||
Reference in New Issue
Block a user