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

Log Message:
-----------
Don't show "file not found" error messages whenever find_canvas() and 
surefind_canvas() fail to load the requested canvas.  Instead show the error 
messages generated.

Modified Paths:
--------------
    synfig-core/trunk/src/synfig/canvas.cpp

Modified: synfig-core/trunk/src/synfig/canvas.cpp
===================================================================
--- synfig-core/trunk/src/synfig/canvas.cpp     2008-10-26 20:02:46 UTC (rev 
2137)
+++ synfig-core/trunk/src/synfig/canvas.cpp     2008-10-26 20:03:06 UTC (rev 
2138)
@@ -544,7 +544,7 @@
                                
external_canvas=open_canvas(get_file_path()+ETL_DIRECTORY_SEPARATOR+file_name, 
errors);
 
                        if(!external_canvas)
-                               throw Exception::FileNotFound(file_name);
+                               throw runtime_error(errors);
                        externals_[file_name]=external_canvas;
                }
 
@@ -631,7 +631,7 @@
                                
external_canvas=open_canvas(get_file_path()+ETL_DIRECTORY_SEPARATOR+file_name, 
errors);
 
                        if(!external_canvas)
-                               throw Exception::FileNotFound(file_name);
+                               throw runtime_error(errors);
                        externals_[file_name]=external_canvas;
                }
 


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