yjp 3 lat temu
rodzic
commit
0bf36c3a7f
1 zmienionych plików z 1 dodań i 5 usunięć
  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,