Skip to content

Commit

Permalink
Propagate error in log (#1875)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon authored Apr 27, 2022
1 parent 2b68f38 commit 815de5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ func rootCmd(o *options.Options) {
pol,
)
if resultsErr != nil {
log.Panicf("Failed to output results: %v", err)
log.Panicf("Failed to format results: %v", resultsErr)
}
}

0 comments on commit 815de5c

Please sign in to comment.