diff options
Diffstat (limited to 'support/openscad')
-rw-r--r-- | support/openscad/__main__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/support/openscad/__main__.py b/support/openscad/__main__.py index 08b2ab6..0f319f8 100644 --- a/support/openscad/__main__.py +++ b/support/openscad/__main__.py @@ -34,4 +34,10 @@ def main(in_path, out_path, deps_path): _write_dependencies(deps_path, relpath(out_path), deps - ignored_files) -main(*sys.argv[1:]) +try: + main(*sys.argv[1:]) +except util.UserError as e: + print 'Error:', e + sys.exit(1) +except KeyboardInterrupt: + sys.exit(2) |