Skip to content

Commit ad17646

Browse files
authored
Merge pull request #4738 from kersten/chore/golang-v4-error-msg-cleanup
🌱 (chore): clean up and unify error messages in golang/v4 plugin
2 parents fa1d379 + 214bef6 commit ad17646

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/plugins/golang/v4/init.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,8 @@ func checkDir() error {
203203
}
204204
}
205205
// Do not allow any other file
206-
return fmt.Errorf(
207-
"target directory is not empty and contains a disallowed file %q. "+
208-
"files with the following extensions [%s] are not allowed to avoid conflicts with the tooling",
206+
return fmt.Errorf("target directory is not empty and contains a disallowed file %q. "+
207+
"files with the following extensions [%s] are not allowed to avoid conflicts with the tooling",
209208
path, strings.Join(disallowedExtensions, ", "))
210209
})
211210
if err != nil {

0 commit comments

Comments
 (0)