diff options
author | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-08-03 13:02:11 +0300 |
---|---|---|
committer | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-08-03 13:02:11 +0300 |
commit | 38a0c9b66de36f46390b42834f595557a56d1df0 (patch) | |
tree | e877de6dceedc746423590b3f38807a03c94ae70 /plugins/3MFWriter | |
parent | d8abf8f47046087317e785897d7b829a31fecac4 (diff) |
Add some extra information when the Cura can't write the files.
Diffstat (limited to 'plugins/3MFWriter')
-rw-r--r-- | plugins/3MFWriter/ThreeMFWriter.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/3MFWriter/ThreeMFWriter.py b/plugins/3MFWriter/ThreeMFWriter.py index 8d54f475d6..640aabd30c 100644 --- a/plugins/3MFWriter/ThreeMFWriter.py +++ b/plugins/3MFWriter/ThreeMFWriter.py @@ -25,6 +25,9 @@ except ImportError: import zipfile import UM.Application +from UM.i18n import i18nCatalog +catalog = i18nCatalog("cura") + class ThreeMFWriter(MeshWriter): def __init__(self): @@ -173,6 +176,7 @@ class ThreeMFWriter(MeshWriter): archive.writestr(relations_file, b'<?xml version="1.0" encoding="UTF-8"?> \n' + ET.tostring(relations_element)) except Exception as e: Logger.logException("e", "Error writing zip file") + self.setInformation(catalog.i18nc("@error:zip", "Error writing 3mf file.")) return False finally: if not self._store_archive: |