Skip to content

Commit

Permalink
lint: fix err prefix for linter
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Phillips <[email protected]>
  • Loading branch information
spiffcs committed Jan 24, 2024
1 parent ec404a8 commit e76e858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/grant/cli/command/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/anchore/grant/internal/input"
)

var FailureError = errors.New("check failed")
var ErrPolicyFailure = errors.New("check failed")

type CheckConfig struct {
Config string `json:"config" yaml:"config" mapstructure:"config"`
Expand Down Expand Up @@ -136,7 +136,7 @@ func runCheck(cfg *CheckConfig, userInput []string) (errs error) {
return errors.Wrap(err, fmt.Sprintf("unable to render report for inputs %s", userInput))
}
if rep.HasFailures() {
return FailureError
return ErrPolicyFailure
}
return nil
}

0 comments on commit e76e858

Please sign in to comment.