优化提取错误提示消息
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"platform/pkg/env"
|
||||
"runtime"
|
||||
@@ -17,7 +18,8 @@ type Err struct {
|
||||
|
||||
func (e *Err) Error() string {
|
||||
if e.err != nil {
|
||||
return e.msg + ": " + e.err.Error()
|
||||
slog.Debug(fmt.Sprintf("%s: %s", e.msg, e.err.Error()))
|
||||
return e.msg
|
||||
}
|
||||
return e.msg
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user