From 621144f040f1a585b6159902f250db9af971ccd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 1 Dec 2024 12:50:33 +0100 Subject: [PATCH] better error if command cannot be found --- format/formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format/formatter.go b/format/formatter.go index b1dec06..fbae970 100644 --- a/format/formatter.go +++ b/format/formatter.go @@ -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