From 2b8d9986140cc36ea6c0a3c3b88571983490e0ef Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Fri, 22 Dec 2017 19:55:07 +0100 Subject: Allow extensions to throw more fine-grained exceptions This allows to tell the user something more helpful than "File could not be saved" (leaving the reason open for speculation). The former implementation somehow grew to only ever throw Inkscape::Extension::Output::save_failed for any exception that occurred (which did not really matter as we did not throw anything else but certainly wasn't very useful either). Questionable throwing behavior was introduced in commits trying to workaround other issues: - output.cpp a874b82b41c08fc1738b449d400fcc6aeb85d72a - system.cpp d8d60c60ebeeefb068d9b68bf7d96f1f1f88518a --- src/extension/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/extension/system.cpp') diff --git a/src/extension/system.cpp b/src/extension/system.cpp index e5b83cd20..888a1076a 100644 --- a/src/extension/system.cpp +++ b/src/extension/system.cpp @@ -330,7 +330,7 @@ save(Extension *key, SPDocument *doc, gchar const *filename, bool setextension, g_free(fileName); - throw Inkscape::Extension::Output::save_failed(); + throw; } // If it is an unofficial save, set the modified attributes back to what they were. -- cgit v1.2.3