- get real error msg in jdapi.
This commit is contained in:
@@ -30,7 +30,7 @@ func NewErrorIntCode(err string, code int, level ...int) *ErrorWithCode {
|
||||
}
|
||||
|
||||
func (e *ErrorWithCode) Error() string {
|
||||
return fmt.Sprintf("level:%d, str:%s, code:%s", e.level, e.str, e.code)
|
||||
return fmt.Sprintf("%s level:%d, code:%s", e.str, e.level, e.code)
|
||||
}
|
||||
|
||||
func (e *ErrorWithCode) String() string {
|
||||
|
||||
Reference in New Issue
Block a user