Skip to content

Commit

Permalink
Adding Unwrap implementation (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedingber authored Dec 10, 2019
1 parent 1d7839a commit 1c799cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ func (err *Error) Error() string {
return err.message
}

func (err *Error) Unwrap() error {
return err.cause
}

// Cause returns the cause of the error
func (err *Error) Cause() error {
return err.cause
Expand Down

0 comments on commit 1c799cc

Please sign in to comment.