mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Pass main exceptions to STDERR
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user