pandastrike / yaml-cli

A simple CLI for querying and updating YAML files
ISC License
86 stars 5 forks source link

improve error handling #8

Closed dyoder closed 8 years ago

dyoder commented 8 years ago

Right now, errors are propagated directly out of the CLI, dumping stack traces. This should rarely happen. Instead, a useful error message should be echoed to stderr.

Ex: when setting a non-existant property, we should get an error message like this.

$ yaml set test.yaml foo.bar.baz hello
yaml: property 'foo.bar.baz' does not exist in 'test.yaml'