From 214bef6ce05d3fa335532006a589e964a5032a99 Mon Sep 17 00:00:00 2001 From: Kersten Burkhardt Date: Thu, 27 Mar 2025 09:45:45 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20(chore):=20clean=20up=20and=20un?= =?UTF-8?q?ify=20error=20messages=20in=20golang/v4=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Lowercased error messages for consistency - Removed redundant punctuation from error strings - Improved clarity of multi-line `fmt.Errorf` usage --- pkg/plugins/golang/v4/init.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/plugins/golang/v4/init.go b/pkg/plugins/golang/v4/init.go index 5c5916923f5..c07024b642b 100644 --- a/pkg/plugins/golang/v4/init.go +++ b/pkg/plugins/golang/v4/init.go @@ -203,9 +203,8 @@ func checkDir() error { } } // Do not allow any other file - return fmt.Errorf( - "target directory is not empty and contains a disallowed file %q. "+ - "files with the following extensions [%s] are not allowed to avoid conflicts with the tooling", + return fmt.Errorf("target directory is not empty and contains a disallowed file %q. "+ + "files with the following extensions [%s] are not allowed to avoid conflicts with the tooling", path, strings.Join(disallowedExtensions, ", ")) }) if err != nil {