Skip to content

Commit

Permalink
Merge 828e96a into e04d736
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Feb 15, 2019
2 parents e04d736 + 828e96a commit 4f4acf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions error.go
Expand Up @@ -56,6 +56,11 @@ func (e *Error) StackTrace() []Frame {
return e.Frames
}

// Unwrap returns the original error.
func (e *Error) Unwrap() error {
return e.Err
}

// Frame is a single step in stack trace.
type Frame struct {
// Func contains a function name.
Expand Down

0 comments on commit 4f4acf1

Please sign in to comment.