about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-05 14:10:29 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-05 14:10:29 -0800
commit356c966dc6de9d7a9306eb9da1b731d061331e5d (patch)
tree65976d54e2993a5ede924ed96d493b70a236e899
parent3895c4e9fcbd5e6222c88e431c90bfef87af99ea (diff)
downloadmu-356c966dc6de9d7a9306eb9da1b731d061331e5d.tar.gz
2372
-rw-r--r--040brace.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/040brace.cc b/040brace.cc
index 71324aaa..9429fe1a 100644
--- a/040brace.cc
+++ b/040brace.cc
@@ -59,6 +59,10 @@ void transform_braces(const recipe_ordinal r) {
       continue;
     }
     if (inst.label == "}") {
+      if (open_braces.empty()) {
+        raise << "missing '{' in " << Recipe[r].name << '\n';
+        return;
+      }
       open_braces.pop();
       continue;
     }