From 814731e7a894b2ce17695c60a0b15b2a3202511a Mon Sep 17 00:00:00 2001 From: "dmitry.zhulanov@gmail.com" <> Date: Thu, 1 Jun 2017 09:28:12 +0700 Subject: improve open .yaml error message and exit with error Fixed bugs: - https://launchpad.net/bugs/1692707 (bzr r15700.1.1) --- src/main-cmdlinexact.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3