Pass main exceptions to STDERR

This commit is contained in:
Ivan Kravets
2015-02-14 22:26:13 +02:00
parent 88f0b51312
commit 8fffc5ee9c

View File

@ -54,7 +54,7 @@ def main():
except Exception as e: # pylint: disable=W0703
maintenance.on_platformio_exception(e)
if isinstance(e, PlatformioException):
click.echo("Error: " + str(e))
click.echo("Error: " + str(e), err=True)
sys_exit(1)
else:
print format_exc()