Merge pull request #2247 from mengqiy/kptfnexample

print to stderr when encoutnering errors
This commit is contained in:
Kubernetes Prow Robot
2020-03-25 11:58:25 -07:00
committed by GitHub

View File

@@ -20,6 +20,7 @@ func main() {
Filters: []kio.Filter{filter{}}, // run the inject into the inputs
Outputs: []kio.Writer{rw}} // copy the inputs to the output
if err := p.Execute(); err != nil {
fmt.Fprint(os.Stderr, err)
os.Exit(1)
}
}