about summary refs log tree commit diff stats
path: root/cpp/041name.cc
diff options
context:
space:
mode:
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