mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Fix lint error message adn reduce build error message to a string concatination.
This commit is contained in:
@@ -134,7 +134,9 @@ func runBuildCmd(buffer bytes.Buffer, cmd *cobra.Command, folder string) (buildO
|
|||||||
buffer.Reset()
|
buffer.Reset()
|
||||||
buildErr := cmd.RunE(cmd, []string{folder})
|
buildErr := cmd.RunE(cmd, []string{folder})
|
||||||
if buildErr != nil {
|
if buildErr != nil {
|
||||||
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)
|
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)
|
||||||
return "", errors.Wrap(buildErr)
|
return "", errors.Wrap(buildErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user