From c908449698409cf3807942ee12c9f4f2da3daaa8 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 26 Oct 2008 20:03:06 +0000 Subject: [PATCH] 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. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2138 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/canvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synfig-core/trunk/src/synfig/canvas.cpp b/synfig-core/trunk/src/synfig/canvas.cpp index b02053c..2997ff4 100644 --- a/synfig-core/trunk/src/synfig/canvas.cpp +++ b/synfig-core/trunk/src/synfig/canvas.cpp @@ -544,7 +544,7 @@ Canvas::surefind_canvas(const String &id) 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 @@ Canvas::find_canvas(const String &id)const 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; } -- 2.7.4