projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When we try to open a file that doesn't exist, display an error in the command line...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
tool
/
main.cpp
diff --git
a/synfig-core/trunk/src/tool/main.cpp
b/synfig-core/trunk/src/tool/main.cpp
index
2fc8640
..
701bd67
100644
(file)
--- a/
synfig-core/trunk/src/tool/main.cpp
+++ b/
synfig-core/trunk/src/tool/main.cpp
@@
-1175,7
+1175,14
@@
int main(int argc, char *argv[])
// Open the composition
String errors, warnings;
// Open the composition
String errors, warnings;
- job_list.front().root=open_canvas(job_list.front().filename, 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)
{
if(!job_list.front().root)
{