mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-02 23:20:20 +00:00
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:
parent
c96ee6159b
commit
d11b3743eb
1 changed files with 3 additions and 1 deletions
|
@ -42,8 +42,10 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
int ret = parse_file(qPrintable(source));
|
int ret = parse_file(qPrintable(source));
|
||||||
if (ret)
|
if (ret) {
|
||||||
fprintf(stderr, "parse_file returned %d\n", ret);
|
fprintf(stderr, "parse_file returned %d\n", ret);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
// this should have set up the informational preferences - let's grab
|
// this should have set up the informational preferences - let's grab
|
||||||
// the units from there
|
// the units from there
|
||||||
|
|
Loading…
Reference in a new issue