summaryrefslogtreecommitdiffstats
path: root/updater/updater.c
diff options
context:
space:
mode:
Diffstat (limited to 'updater/updater.c')
-rw-r--r--updater/updater.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/updater/updater.c b/updater/updater.c
index aa03803a8..09776256b 100644
--- a/updater/updater.c
+++ b/updater/updater.c
@@ -80,10 +80,11 @@ int main(int argc, char** argv) {
// Parse the script.
Expr* root;
+ int error_count = 0;
yy_scan_string(script);
- int error = yyparse(&root);
- if (error != 0) {
- fprintf(stderr, "%d parse errors\n", error);
+ int error = yyparse(&root, &error_count);
+ if (error != 0 || error_count > 0) {
+ fprintf(stderr, "%d parse errors\n", error_count);
return 6;
}