diff --git a/exception.go b/exception.go index b52b2a3..f63ddea 100644 --- a/exception.go +++ b/exception.go @@ -125,7 +125,7 @@ func NewFromError(code interface{}, err error) IException { // Date : 22:25 2023/2/11 func NewFromMessage(code interface{}, message string) IException { if len(message) == 0 { - message = fmt.Sprintf("%v", code) + message = getMessage(code, fmt.Sprintf("%v -> 未知异常信息", code)) } return NewFromError(code, errors.New(message)) }