cli: Print EnvironmentErrors on stderr

Errors such as "no such file or directory" should not be printed on
standard output.
proto/fix-indentation
Adrien Vergé 9 years ago
parent 20545febe5
commit 0c36d0175c

@ -123,7 +123,7 @@ def run(argv=None):
if not first and args.format != 'parsable':
print('')
except EnvironmentError as e:
print(e)
print(e, file=sys.stderr)
return_code = -1
sys.exit(return_code)

Loading…
Cancel
Save