X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Ftool%2Fmain.cpp;h=701bd67b5a82459255c3f726ba8c46b69b7c5da9;hb=fed432fb09efa7eaecf220c494feb4f3b59b922c;hp=90d7cf8bec86b0875df2eb2652842a53375e2c00;hpb=6c6dde907eadafe73e401781fd2ffb6c6223ec85;p=synfig.git diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index 90d7cf8..701bd67 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -1174,12 +1174,19 @@ 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) { - cerr<<_("Unable to open ")<find_canvas(canvasid); + String warnings; + job_list.front().canvas=job_list.front().root->find_canvas(canvasid, warnings); } catch(Exception::IDNotFound) { @@ -1235,10 +1243,13 @@ 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 '")<rbegin();iter!=composite->rend();++iter) {