Skip to content

Commit

Permalink
add (*dictionary.ParseError).Unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Cooper committed May 28, 2020
1 parent 5e6b86f commit 7a19399
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dictionary/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ func (e *ParseError) Error() string {
return str
}

func (e *ParseError) Unwrap() error { return e.Inner }

type DuplicateAttributeError struct {
Attribute *Attribute
}
Expand Down

0 comments on commit 7a19399

Please sign in to comment.