Skip to content

Commit

Permalink
quickfix: error logged needlessly, checking for sentinel error value
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice committed Mar 26, 2019
1 parent dd81d42 commit eae15e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/protolock/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ func status(cfg *protolock.Config) {
if *plugins != "" {
report, err = runPlugins(*plugins, report)
if err != nil {
fmt.Println(err)
fmt.Println("[protolock]:", err)
os.Exit(1)
}
}

code, err := protolock.HandleReport(report, os.Stdout, err)
if err != nil {
fmt.Println(err)
if err != protolock.ErrWarningsFound && err != nil {
fmt.Println("[protolock]:", err)
os.Exit(1)
}

Expand Down

0 comments on commit eae15e3

Please sign in to comment.