diff --git a/platformio/__main__.py b/platformio/__main__.py index 9721e794..a298502e 100644 --- a/platformio/__main__.py +++ b/platformio/__main__.py @@ -82,7 +82,8 @@ def main(): else: error_str += format_exc() click.secho(error_str, fg="red", err=True) - sys_exit(1) + return 1 + return 0 if __name__ == "__main__":