Skip to content

Commit

Permalink
refactor(policy): start policy error report at 1 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored Oct 4, 2018
1 parent 4aaf049 commit 0f0ff02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/enforcer/enforcer.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (c *Conform) enforce(p *PolicyDeclaration) error {
if !report.Valid() {
fmt.Printf("Violation of policy %q:\n", p.Type)
for i, err := range report.Errors {
fmt.Printf("\tViolation %d: %v\n", i, err)
fmt.Printf("\tViolation %d: %v\n", i+1, err)
}
os.Exit(1)
}
Expand Down

0 comments on commit 0f0ff02

Please sign in to comment.