Skip to content

Commit

Permalink
Merge pull request #491 from numtide/better-error
Browse files Browse the repository at this point in the history
better error if command cannot be found
  • Loading branch information
brianmcgee authored Dec 2, 2024
2 parents 741970b + 621144f commit a5b77aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func newFormatter(
// test if the formatter is available
executable, err := interp.LookPathDir(treeRoot, env, cfg.Command)
if err != nil {
return nil, ErrCommandNotFound
return nil, fmt.Errorf("%w: error looking up '%s'", ErrCommandNotFound, cfg.Command)
}

f.executable = executable
Expand Down

0 comments on commit a5b77aa

Please sign in to comment.