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

+ 4 - 0
errors.go

@@ -88,6 +88,10 @@ func (err *Error) Error() string {
 	return errMsg
 }
 
+func (err *Error) WithStack() error {
+	return errors.WithStack(err)
+}
+
 func newError(code uint32, message string) *Error {
 	return &Error{
 		code:  code,