unbounce / iidy

iidy (Is it done yet?) -- CloudFormation with Confidence
MIT License
52 stars 7 forks source link

Write error-level logs to stderr #188

Closed jpb closed 5 years ago

jpb commented 5 years ago

Error log messages are written to stdout, which will get swallowed if piped into another command:

$ cat test.yaml
foo: !$ a

$ bin/iidy render test.yaml --format json | jq
parse error: Invalid numeric literal at line 1, column 6

Error is from jq ☝️

With this change:

$ bin/iidy render test.yaml --format json | jq
error Could not find "a" at a in Root.foo

Error is from iidy ☝️ (printed to stderr)