Skip to content

Commit

Permalink
Merge pull request #25 from reubenmiller/fix-route-check-usage-on-error
Browse files Browse the repository at this point in the history
fix(route-check): don't show cli usage on template errors
  • Loading branch information
reubenmiller authored May 27, 2023
2 parents 41909e4 + 392f7fe commit 570cde2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/routes_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ Examples:
if err != nil {
slog.Error("handler returned an error.", "err", err)

// Return errors immediately
// Return errors immediately (but don't trigger the command's help text)
cmd.SilenceUsage = true
return err
}

Expand Down

0 comments on commit 570cde2

Please sign in to comment.