summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inkstitch.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/inkstitch.py b/inkstitch.py
index 840cdc58..ff8f6c30 100644
--- a/inkstitch.py
+++ b/inkstitch.py
@@ -1,14 +1,14 @@
+import logging
import os
import sys
-import logging
import traceback
-from cStringIO import StringIO
from argparse import ArgumentParser
+from cStringIO import StringIO
-from lib import extensions
-from lib.utils import save_stderr, restore_stderr
import lib.debug as debug
-
+from lib import extensions
+from lib.i18n import _
+from lib.utils import restore_stderr, save_stderr
logger = logging.getLogger('shapely.geos')
logger.setLevel(logging.DEBUG)
@@ -53,6 +53,10 @@ else:
print >> sys.stderr, shapely_errors.getvalue()
if exception:
+ print >> sys.stderr, _("Ink/Stitch experienced an unexpected error.")
+ print >> sys.stderr, _("If you'd like to help, please file an issue at "
+ "https://github.com/inkstitch/inkstitch/issues "
+ "and include the entire error description below:"), "\n"
print >> sys.stderr, exception
sys.exit(1)
else: