From c253046c1a09a6a29d2dda470926af55511e108f Mon Sep 17 00:00:00 2001 From: Kaalleen Date: Tue, 25 Mar 2025 18:00:40 +0100 Subject: [PATCH] add more detailed error message on iorror --- lib/extensions/install.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/extensions/install.py b/lib/extensions/install.py index 187769357..43e95414e 100644 --- a/lib/extensions/install.py +++ b/lib/extensions/install.py @@ -40,8 +40,8 @@ class Install(InkstitchExtension): try: copy_files(glob(os.path.join(src_dir, "*")), path) return True - except IOError: - self.install_error_message(_("Could not install color palettes. Please file an issue on")) + except IOError as error: + self.install_error_message(_("Could not install color palettes. Please file an issue on"), error) return False def install_symbol_libraries(self): @@ -50,15 +50,16 @@ class Install(InkstitchExtension): try: copy_files(glob(os.path.join(src_dir, "*")), path) return True - except IOError: - self.install_error_message(_("Could not install color palettes. Please file an issue on")) + except IOError as error: + self.install_error_message(_("Could not install color palettes. Please file an issue on"), error) return False def install_success_message(self): errormsg(_("Successfully installed Addons.\n\nPlease restart Inkscape.")) - def install_error_message(self, text): - errormsg(text + "https://github.com/inkstitch/inkstitch/issues") + def install_error_message(self, text, error): + errormsg(text + " https://github.com/inkstitch/inkstitch/issues\n\n") + errormsg(error) if sys.platform == "win32":