about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2018-03-21 21:52:53 -0700
committerKartik K. Agaram <vc@akkartik.com>2018-03-21 21:52:53 -0700
commitd37c983a778d53f991999e6b2b309a07a9bca0b0 (patch)
treecb676c014d0683e0be67e6b3affc96f1ab7bc094
parent06e0edbaf8eea63ea7896d3a837277d70b2b6321 (diff)
downloadmu-d37c983a778d53f991999e6b2b309a07a9bca0b0.tar.gz
4231
-rw-r--r--076continuation.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/076continuation.cc b/076continuation.cc
index 50e4f637..fd51869d 100644
--- a/076continuation.cc
+++ b/076continuation.cc
@@ -191,6 +191,9 @@ RETURN_CONTINUATION_UNTIL_MARK,
 Recipe_ordinal["return-continuation-until-mark"] = RETURN_CONTINUATION_UNTIL_MARK;
 :(before "End Primitive Recipe Checks")
 case RETURN_CONTINUATION_UNTIL_MARK: {
+  if (inst.ingredients.empty()) {
+    raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' requires at least one ingredient: a mark tag (number)\n" << end();
+  }
   break;
 }
 :(before "End Primitive Recipe Implementations")