about summary refs log tree commit diff stats
path: root/cpp/041name.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-02 15:50:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-02 15:50:59 -0700
commita316f1e4168a98ba8c1bbe7b091f8a7e7b3f03e6 (patch)
treecd8835427171818f1c6c6587bd77987e45d7fd46 /cpp/041name.cc
parent518e6c5e571077ecc29d28f620f7312cf18bd5d0 (diff)
downloadmu-a316f1e4168a98ba8c1bbe7b091f8a7e7b3f03e6.tar.gz
1241 - bugfix: comments inside run [ ... ]
Diffstat (limited to 'cpp/041name.cc')
-rw-r--r--cpp/041name.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/041name.cc b/cpp/041name.cc
index 9336ae04..ac7c751c 100644
--- a/cpp/041name.cc
+++ b/cpp/041name.cc
@@ -45,6 +45,8 @@ void transform_names(const recipe_number r) {
 //?       cout << "ingredient " << inst.ingredients[in].to_string() << '\n'; //? 1
       if (inst.ingredients[in].name == "default-space")
         inst.ingredients[in].initialized = true;
+      if (inst.ingredients[in].types.empty())
+        raise << "missing type in " << inst.to_string() << '\n';
       assert(!inst.ingredients[in].types.empty());
       if (inst.ingredients[in].types[0]  // not a literal
           && !inst.ingredients[in].initialized