Skip to content

Commit 8db4c4b

Browse files
committed
Fix lint error message adn reduce build error message to a string concatination.
1 parent b679598 commit 8db4c4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kustomize/commands/localize/localize.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ func runBuildCmd(buffer bytes.Buffer, cmd *cobra.Command, folder string) (buildO
134134
buffer.Reset()
135135
buildErr := cmd.RunE(cmd, []string{folder})
136136
if buildErr != nil {
137-
log.Printf("If your target directory requires flags to build: \n 1. Add executable permissions for the downloaded exec binaries in '%s'. \n 2. Run kustomize build with the necessary flags and self-verify the outputs.", folder)
137+
log.Printf("If your target directory requires flags to build: \n"+
138+
"1. Add executable permissions for the downloaded exec binaries in '%s'. \n"+
139+
"2. Run kustomize build with the necessary flags and self-verify the outputs.", folder)
138140
return "", errors.Wrap(buildErr)
139141
}
140142

0 commit comments

Comments
 (0)