When a .sif file fails to load, display the error messages in the studio GUI, not...
[synfig.git] / synfig-core / trunk / src / tool / main.cpp
index 01f4b64..90d7cf8 100644 (file)
@@ -1174,7 +1174,8 @@ int main(int argc, char *argv[])
                          return ret;
 
                        // Open the composition
-                       job_list.front().root=open_canvas(job_list.front().filename);
+                       String errors;
+                       job_list.front().root=open_canvas(job_list.front().filename, errors);
 
                        if(!job_list.front().root)
                        {
@@ -1234,7 +1235,8 @@ int main(int argc, char *argv[])
                                extract_append(imageargs,composite_file);
                                if(!composite_file.empty())
                                {
-                                       Canvas::Handle composite(open_canvas(composite_file));
+                                       String errors;
+                                       Canvas::Handle composite(open_canvas(composite_file, errors));
                                        if(!composite)
                                                break;
                                        Canvas::reverse_iterator iter;