X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Ftool%2Fmain.cpp;h=701bd67b5a82459255c3f726ba8c46b69b7c5da9;hb=fed432fb09efa7eaecf220c494feb4f3b59b922c;hp=13fc4384dbed7b911a02b82983526a2af738f70d;hpb=6e947795bf7be89b7a4d5e85b7610101f5847bc5;p=synfig.git diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index 13fc438..701bd67 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -1174,8 +1174,15 @@ int main(int argc, char *argv[]) return ret; // Open the composition - String errors; - job_list.front().root=open_canvas(job_list.front().filename, errors); + String errors, warnings; + try + { + job_list.front().root=open_canvas(job_list.front().filename, errors, warnings); + } + catch(runtime_error x) + { + job_list.front().root = 0; + } if(!job_list.front().root) { @@ -1199,7 +1206,8 @@ int main(int argc, char *argv[]) { try { - job_list.front().canvas=job_list.front().root->find_canvas(canvasid); + String warnings; + job_list.front().canvas=job_list.front().root->find_canvas(canvasid, warnings); } catch(Exception::IDNotFound) { @@ -1235,8 +1243,8 @@ int main(int argc, char *argv[]) extract_append(imageargs,composite_file); if(!composite_file.empty()) { - String errors; - Canvas::Handle composite(open_canvas(composite_file, errors)); + String errors, warnings; + Canvas::Handle composite(open_canvas(composite_file, errors, warnings)); if(!composite) { cerr<<_("Unable to append '")<