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>
This commit is contained in:
Dirk Hohndel 2015-06-18 12:22:14 -07:00
parent c96ee6159b
commit d11b3743eb

View file

@ -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