summaryrefslogtreecommitdiff
path: root/src/openscad.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-08 03:14:29 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-08 03:14:29 (GMT)
commit512e7bb1bead9cf76c5f17fdda3b83a6e162fb4c (patch)
treef3d788354a94edd09421a02df6ec3b8c1525a4eb /src/openscad.cc
parent7a139c2558a684beaac426ca2b8066e0961bad99 (diff)
bugfix: command-line crash on parser error
Diffstat (limited to 'src/openscad.cc')
-rw-r--r--src/openscad.cc1
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());
contact: Jan Huwald // Impressum