Revision: 2134
          http://synfig.svn.sourceforge.net/synfig/?rev=2134&view=rev
Author:   dooglus
Date:     2008-10-26 20:01:48 +0000 (Sun, 26 Oct 2008)

Log Message:
-----------
When 'import' fails to import a .sif file, display the error messages rather 
than just "Unable to open this composition".

Modified Paths:
--------------
    synfig-studio/trunk/src/synfigapp/canvasinterface.cpp

Modified: synfig-studio/trunk/src/synfigapp/canvasinterface.cpp
===================================================================
--- synfig-studio/trunk/src/synfigapp/canvasinterface.cpp       2008-10-26 
20:01:28 UTC (rev 2133)
+++ synfig-studio/trunk/src/synfigapp/canvasinterface.cpp       2008-10-26 
20:01:48 UTC (rev 2134)
@@ -582,7 +582,7 @@
                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 @@
        }
        catch(String x)
        {
-               get_ui_interface()->error(x+" -- "+filename);
+               get_ui_interface()->error(filename + ": " + x);
                return false;
        }
        catch(...)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to