- get real error msg in jdapi.

This commit is contained in:
gazebo
2018-08-23 14:12:33 +08:00
parent a423ba2eed
commit 259a8c896a
2 changed files with 12 additions and 3 deletions

View File

@@ -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 {