Skip to content

Commit

Permalink
use the existing error interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Weber authored and gregwebs committed Jun 18, 2024
1 parent cc87bc9 commit 3b9a882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ func (code Code) IsAncestor(ancestorCode Code) bool {
// return PathBlockedCode
// }
type ErrorCode interface {
Error() string // The Error interface
Code() Code
error
}

// unwrapper allows the abstract retrieval of the underlying error.
Expand Down

0 comments on commit 3b9a882

Please sign in to comment.