print to stderr when encoutnering errors

This commit is contained in:
Mengqi Yu
2020-03-02 16:16:10 -08:00
parent 2a8a17e3af
commit 55284dc290

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)
}
}