]> git.lizzy.rs Git - rust.git/commit
don't silence error unnecessary
authorAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 13 Apr 2016 22:39:39 +0000 (01:39 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 13 Apr 2016 22:39:39 +0000 (01:39 +0300)
commitb1efb3a39e23b4ccbc4feef0a30c02441a2384e9
tree0a9727f1a8f1e33fb898e7507325064c67e1b815
parent14775eb046b245525c28815033cb85ac646f54c6
don't silence error unnecessary

This `if` was used to separate error output from the formatting output, when they both used stdout. It was useful for integration with tools, which can submit input to stdin and read pretty printed result from stdout without worrying about errors intermingled with the actual result.

But now we write errors to `stderr`, so the problem disappears and we can safely remove this `if`.

Errors should never pass silently, unless explicitly silenced.
src/lib.rs