From d11b3743ebc7d719cdf37ea360533f6dee3f4e4f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 18 Jun 2015 12:22:14 -0700 Subject: [PATCH] HTML standalone exporter: give up if parsing the input fails There's no point in trying to export after not being able to read the data in the first place. Signed-off-by: Dirk Hohndel --- export-html.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/export-html.cpp b/export-html.cpp index 5c509d521..c117eda79 100644 --- a/export-html.cpp +++ b/export-html.cpp @@ -42,8 +42,10 @@ int main(int argc, char **argv) } int ret = parse_file(qPrintable(source)); - if (ret) + if (ret) { fprintf(stderr, "parse_file returned %d\n", ret); + exit(1); + } // this should have set up the informational preferences - let's grab // the units from there