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 {