From 8959135e2f4da83b44edde075bd16d581492f0c2 Mon Sep 17 00:00:00 2001 From: Michael Di Prisco Date: Fri, 14 Jun 2024 10:25:52 +0200 Subject: [PATCH] chore: setting proper error message for missing lefthook file (#748) --- internal/config/load.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/load.go b/internal/config/load.go index 7c1f060d..219f21ba 100644 --- a/internal/config/load.go +++ b/internal/config/load.go @@ -91,7 +91,7 @@ func readOne(fs afero.Fs, path string, names []string) (*viper.Viper, error) { return v, nil } - return nil, NotFoundError{fmt.Sprintf("No config files with names %q could not be found in \"%s\"", names, path)} + return nil, NotFoundError{fmt.Sprintf("No config files with names %q have been found in \"%s\"", names, path)} } // mergeAll merges configs using the following order.