summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-12-22 22:12:23 -0500
committerLex Neva <github.com@lexneva.name>2018-12-22 22:12:23 -0500
commitc8d354a2fc663d49478b1b87329b0e6f11616704 (patch)
tree4dc49fb960ea30a74ca96f0ce96ec2c0ba4c484d /lib
parent32458c619a38928f403e5924c8ba864fe7ae346c (diff)
print error message correctly
Diffstat (limited to 'lib')
-rw-r--r--lib/output.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/output.py b/lib/output.py
index 5fa7791f..2745de1d 100644
--- a/lib/output.py
+++ b/lib/output.py
@@ -1,11 +1,12 @@
-import sys
import pyembroidery
+import sys
+
import simpletransform
+from .commands import global_command
from .i18n import _
-from .utils import Point
from .svg import PIXELS_PER_MM, get_doc_size, get_viewbox_transform
-from .commands import global_command
+from .utils import Point
def get_command(stitch):
@@ -99,5 +100,5 @@ def write_embroidery_file(file_path, stitch_plan, svg, settings={}):
except IOError as e:
# L10N low-level file error. %(error)s is (hopefully?) translated by
# the user's system automatically.
- print >> sys.stderr, _("Error writing to %(path)s: %(error)s") % dict(path=file_path, error=e.message)
+ print >> sys.stderr, _("Error writing to %(path)s: %(error)s") % dict(path=file_path, error=e.strerror)
sys.exit(1)