mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 16:42:51 +00:00
refactor: nested format string
This commit is contained in:
@@ -52,9 +52,9 @@ Installation and setup instructions: https://kubernetes.io/docs/tasks/tools/inst
|
||||
command.Stderr = &stderr
|
||||
err := command.Run()
|
||||
if err != nil {
|
||||
return fmt.Errorf("%w\n%s", err, stderr.String()+errMsg)
|
||||
return fmt.Errorf("%w\n%s%s", err, stderr.String(), errMsg)
|
||||
} else if stdout.String() == "" {
|
||||
return fmt.Errorf("%s", stderr.String()+errMsg)
|
||||
return fmt.Errorf("%s%s", stderr.String(), errMsg)
|
||||
}
|
||||
|
||||
// format and output
|
||||
|
||||
Reference in New Issue
Block a user