diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-18 12:22:14 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-18 12:23:15 -0700 |
commit | d11b3743ebc7d719cdf37ea360533f6dee3f4e4f (patch) | |
tree | c34ba424d8bcb917f972ec4c70c3097152b00a94 /export-html.cpp | |
parent | c96ee6159b4c119076fdad7cca562c0dc837d789 (diff) | |
download | subsurface-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.cpp | 4 |
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 |