Show an appropriate error message when the command line --append flag fails to open...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 26 Oct 2008 20:02:07 +0000 (20:02 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 26 Oct 2008 20:02:07 +0000 (20:02 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2135 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/tool/main.cpp

index 90d7cf8..13fc438 100644 (file)
@@ -1179,7 +1179,7 @@ int main(int argc, char *argv[])
 
                        if(!job_list.front().root)
                        {
-                               cerr<<_("Unable to open ")<<job_list.front().filename<<"."<<endl;
+                               cerr<<_("Unable to load '")<<job_list.front().filename<<"'."<<endl;
                                cerr<<_("Throwing out job...")<<endl;
                                job_list.pop_front();
                                continue;
@@ -1238,7 +1238,10 @@ int main(int argc, char *argv[])
                                        String errors;
                                        Canvas::Handle composite(open_canvas(composite_file, errors));
                                        if(!composite)
+                                       {
+                                               cerr<<_("Unable to append '")<<composite_file<<"'."<<endl;
                                                break;
+                                       }
                                        Canvas::reverse_iterator iter;
                                        for(iter=composite->rbegin();iter!=composite->rend();++iter)
                                        {