- 将饿百返回的以8进制返回的错误信息显示为正常的文本

This commit is contained in:
gazebo
2019-07-27 19:52:07 +08:00
parent 8f164f4f28
commit 437711eb38
2 changed files with 23 additions and 11 deletions

View File

@@ -59,6 +59,10 @@ func (e *ErrorWithCode) ErrMsg() string {
return e.errMsg
}
func (e *ErrorWithCode) SetErrMsg(errMsg string) {
e.errMsg = errMsg
}
func (e *ErrorWithCode) AddPrefixMsg(prefix string) {
e.prefixList = append(e.prefixList, prefix)
}