diff options
| author | dmitry.zhulanov@gmail.com <> | 2017-06-01 02:28:12 +0000 |
|---|---|---|
| committer | dmitry.zhulanov@gmail.com <> | 2017-06-01 02:28:12 +0000 |
| commit | 814731e7a894b2ce17695c60a0b15b2a3202511a (patch) | |
| tree | 2df893f98ff6afee2e059ebd0f0f8d47101b77f8 /src/main-cmdlinexact.cpp | |
| parent | merge chr[] branch : Objects panel improvements, mem leaks. (diff) | |
| download | inkscape-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.cpp | 6 |
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; |
