summaryrefslogtreecommitdiffstats
path: root/src/extension/system.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-12-22 18:55:07 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-12-22 18:55:07 +0000
commit2b8d9986140cc36ea6c0a3c3b88571983490e0ef (patch)
tree87b531fed8681857be05567aa9d28e931fa58321 /src/extension/system.cpp
parentRemove inkscape.file.svg (and inkscape.file.png) (diff)
downloadinkscape-2b8d9986140cc36ea6c0a3c3b88571983490e0ef.tar.gz
inkscape-2b8d9986140cc36ea6c0a3c3b88571983490e0ef.zip
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
Diffstat (limited to 'src/extension/system.cpp')
-rw-r--r--src/extension/system.cpp2
1 files changed, 1 insertions, 1 deletions
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.