Skip to content

Commit 621144f

Browse files
committed
better error if command cannot be found
1 parent 741970b commit 621144f

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)