Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2617 from fluxcd/enhancement/err-unwrap
Browse files Browse the repository at this point in the history
Support unwrapping `NotReadyError`
  • Loading branch information
hiddeco authored Nov 18, 2019
2 parents dcac6b9 + 1a5ff82 commit 6d344f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/git/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ type NotReadyError struct {
underlying error
}

func (err NotReadyError) Unwrap() error { return err.underlying }

func (err NotReadyError) Error() string {
return "git repo not ready: " + err.underlying.Error()
}
Expand Down

0 comments on commit 6d344f1

Please sign in to comment.