Skip to content

Commit a5b77aa

Browse files
authored
Merge pull request numtide#491 from numtide/better-error
better error if command cannot be found
2 parents 741970b + 621144f commit a5b77aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

format/formatter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func newFormatter(
155155
// test if the formatter is available
156156
executable, err := interp.LookPathDir(treeRoot, env, cfg.Command)
157157
if err != nil {
158-
return nil, ErrCommandNotFound
158+
return nil, fmt.Errorf("%w: error looking up '%s'", ErrCommandNotFound, cfg.Command)
159159
}
160160

161161
f.executable = executable

0 commit comments

Comments
 (0)