mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +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
|
except Exception as e: # pylint: disable=W0703
|
||||||
maintenance.on_platformio_exception(e)
|
maintenance.on_platformio_exception(e)
|
||||||
if isinstance(e, PlatformioException):
|
if isinstance(e, PlatformioException):
|
||||||
click.echo("Error: " + str(e))
|
click.echo("Error: " + str(e), err=True)
|
||||||
sys_exit(1)
|
sys_exit(1)
|
||||||
else:
|
else:
|
||||||
print format_exc()
|
print format_exc()
|
||||||
|
Reference in New Issue
Block a user