From 8fffc5ee9c68aeaa7d2a34397483fccb43dfb6e4 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 14 Feb 2015 22:26:13 +0200 Subject: [PATCH] Pass main exceptions to STDERR --- platformio/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/__main__.py b/platformio/__main__.py index 92dba967..844ead39 100644 --- a/platformio/__main__.py +++ b/platformio/__main__.py @@ -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()