From c74deea8c48c394c96f62460857abeed871e1c47 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 26 Oct 2008 20:01:48 +0000 Subject: [PATCH] When 'import' fails to import a .sif file, display the error messages rather than just "Unable to open this composition". git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2134 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/canvasinterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp index c0423f0..d3d96c7 100644 --- a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp +++ b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp @@ -582,7 +582,7 @@ CanvasInterface::import(const synfig::String &filename, bool /*copy*/) String errors; Canvas::Handle outside_canvas(synfig::open_canvas(filename, errors)); if(!outside_canvas) - throw String(_("Unable to open this composition")); + throw String(_("Unable to open this composition")) + ":\n\n" + errors; Layer::Handle layer(add_layer_to("PasteCanvas",get_canvas())); if(!layer) @@ -596,7 +596,7 @@ CanvasInterface::import(const synfig::String &filename, bool /*copy*/) } catch(String x) { - get_ui_interface()->error(x+" -- "+filename); + get_ui_interface()->error(filename + ": " + x); return false; } catch(...) -- 2.7.4