When 'import' fails to import a .sif file, display the error messages rather than...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 26 Oct 2008 20:01:48 +0000 (20:01 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 26 Oct 2008 20:01:48 +0000 (20:01 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2134 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/canvasinterface.cpp

index c0423f0..d3d96c7 100644 (file)
@@ -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(...)