diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-08 03:14:29 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-08 03:14:29 (GMT) |
commit | 512e7bb1bead9cf76c5f17fdda3b83a6e162fb4c (patch) | |
tree | f3d788354a94edd09421a02df6ec3b8c1525a4eb /src | |
parent | 7a139c2558a684beaac426ca2b8066e0961bad99 (diff) |
bugfix: command-line crash on parser error
Diffstat (limited to 'src')
-rw-r--r-- | src/openscad.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openscad.cc b/src/openscad.cc index f7db633..1c9c8df 100644 --- a/src/openscad.cc +++ b/src/openscad.cc @@ -299,6 +299,7 @@ int main(int argc, char **argv) fclose(fp); text << commandline_commands; root_module = parse(text.str().c_str(), fileInfo.absolutePath().toLocal8Bit(), false); + if (!root_module) exit(1); } QDir::setCurrent(fileInfo.absolutePath()); |