summaryrefslogtreecommitdiff
path: root/inkstitch.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2020-04-20 20:52:50 +0200
committerGitHub <noreply@github.com>2020-04-20 20:52:50 +0200
commit1f43fad44fefc4fa6d474c0dde8ffaa304be4c75 (patch)
tree5df141d2542e00f5d9f2af434a124ff462f81ec8 /inkstitch.py
parent6e5013713ab278d769ce3c0cc5ade502dc16cd90 (diff)
top level exception text (#647)
Diffstat (limited to 'inkstitch.py')
-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: