summaryrefslogtreecommitdiffstats
path: root/export-html.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-18 12:22:14 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-18 12:23:15 -0700
commitd11b3743ebc7d719cdf37ea360533f6dee3f4e4f (patch)
treec34ba424d8bcb917f972ec4c70c3097152b00a94 /export-html.cpp
parentc96ee6159b4c119076fdad7cca562c0dc837d789 (diff)
downloadsubsurface-d11b3743ebc7d719cdf37ea360533f6dee3f4e4f.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'export-html.cpp')
-rw-r--r--export-html.cpp4
1 files changed, 3 insertions, 1 deletions
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