Skip to content

Commit 214bef6

Browse files
committed
🌱 (chore): clean up and unify error messages in golang/v4 plugin
- Lowercased error messages for consistency - Removed redundant punctuation from error strings - Improved clarity of multi-line `fmt.Errorf` usage
1 parent fa1d379 commit 214bef6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/plugins/golang/v4/init.go

Lines changed: 2 additions & 3 deletions
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)