From 1f43fad44fefc4fa6d474c0dde8ffaa304be4c75 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Mon, 20 Apr 2020 20:52:50 +0200 Subject: top level exception text (#647) --- inkstitch.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'inkstitch.py') 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: -- cgit v1.2.3