Skip to content

Commit

Permalink
better error if command cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Dec 1, 2024
1 parent 741970b commit ec3cb0d
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: %s", ErrCommandNotFound, cfg.Command)
}

f.executable = executable
Expand Down

0 comments on commit ec3cb0d

Please sign in to comment.