X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Ftool%2Fmain.cpp;h=701bd67b5a82459255c3f726ba8c46b69b7c5da9;hb=1ba01d62f55407997aca33ed89d171ea7e5979d1;hp=01f4b645b3797a701cde09c18f85022ebf584d16;hpb=66f4173f0900b23b5907953a88e0f00a62053119;p=synfig.git diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index 01f4b64..701bd67 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -1174,11 +1174,19 @@ int main(int argc, char *argv[]) return ret; // Open the composition - job_list.front().root=open_canvas(job_list.front().filename); + 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) { @@ -1234,9 +1243,13 @@ int main(int argc, char *argv[]) extract_append(imageargs,composite_file); if(!composite_file.empty()) { - Canvas::Handle composite(open_canvas(composite_file)); + String errors, warnings; + Canvas::Handle composite(open_canvas(composite_file, errors, warnings)); if(!composite) + { + cerr<<_("Unable to append '")<rbegin();iter!=composite->rend();++iter) {