summaryrefslogtreecommitdiffstats
path: root/src/main-cmdlinexact.cpp
diff options
context:
space:
mode:
authordmitry.zhulanov@gmail.com <>2017-06-01 02:28:12 +0000
committerdmitry.zhulanov@gmail.com <>2017-06-01 02:28:12 +0000
commit814731e7a894b2ce17695c60a0b15b2a3202511a (patch)
tree2df893f98ff6afee2e059ebd0f0f8d47101b77f8 /src/main-cmdlinexact.cpp
parentmerge chr[] branch : Objects panel improvements, mem leaks. (diff)
downloadinkscape-814731e7a894b2ce17695c60a0b15b2a3202511a.tar.gz
inkscape-814731e7a894b2ce17695c60a0b15b2a3202511a.zip
improve open .yaml error message and exit with error
Fixed bugs: - https://launchpad.net/bugs/1692707 (bzr r15700.1.1)
Diffstat (limited to 'src/main-cmdlinexact.cpp')
-rw-r--r--src/main-cmdlinexact.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main-cmdlinexact.cpp b/src/main-cmdlinexact.cpp
index fc9e84dc4..2806e5b5f 100644
--- a/src/main-cmdlinexact.cpp
+++ b/src/main-cmdlinexact.cpp
@@ -293,9 +293,11 @@ parseVerbsYAMLFile(gchar const *yaml_filename)
FILE *fh = fopen(yaml_filename, "r");
if(fh == NULL) {
- printf("Failed to open file!\n");
+ printf("Failed to open file %s\n", yaml_filename);
fflush(stdout);
- return verbs_list;
+
+ // exit with error
+ exit(1);
}
yaml_parser_t parser;