mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
print to stderr when encoutnering errors
This commit is contained in:
@@ -20,6 +20,7 @@ func main() {
|
|||||||
Filters: []kio.Filter{filter{}}, // run the inject into the inputs
|
Filters: []kio.Filter{filter{}}, // run the inject into the inputs
|
||||||
Outputs: []kio.Writer{rw}} // copy the inputs to the output
|
Outputs: []kio.Writer{rw}} // copy the inputs to the output
|
||||||
if err := p.Execute(); err != nil {
|
if err := p.Execute(); err != nil {
|
||||||
|
fmt.Fprint(os.Stderr, err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user