yjp %!s(int64=3) %!d(string=hai) anos
pai
achega
0bf36c3a7f
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      errors.go

+ 1 - 5
errors.go

@@ -84,14 +84,10 @@ func (err *Error) Code() uint32 {
 }
 
 func (err *Error) Error() string {
-	errMsg := fmt.Sprintf("错误代码: 0x%08x\n代码信息: %s\n%+v\n", err.code, codeMap[err.code], err.error)
+	errMsg := fmt.Sprintf("\n错误代码: 0x%08x\n代码信息: %s\n%+v\n", err.code, codeMap[err.code], err.error)
 	return errMsg
 }
 
-func (err *Error) WithStack() error {
-	return errors.WithStack(err)
-}
-
 func newError(code uint32, message string) *Error {
 	return &Error{
 		code:  code,