about summary refs log tree commit diff stats
path: root/057immutable.cc
diff options
context:
space:
mode:
Diffstat (limited to '057immutable.cc')
-rw-r--r--057immutable.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/057immutable.cc b/057immutable.cc
index 0d82c010..739f6a56 100644
--- a/057immutable.cc
+++ b/057immutable.cc
@@ -555,9 +555,9 @@ $error: 0
 :(before "End Immutable Ingredients Special-cases")
 if (has_property(current_ingredient, "contained-in")) {
   const string_tree* tmp = property(current_ingredient, "contained-in");
-  if (tmp->left || tmp->right
+  if (!tmp->atom
       || !is_present_in_ingredients(caller, tmp->value)
       || !is_present_in_products(caller, tmp->value))
-    raise << maybe(caller.name) << "/contained-in can only point to another ingredient+product, but got '" << to_string(property(current_ingredient, "contained-in")) << "'\n" << end();
+    raise << maybe(caller.name) << "/contained-in can only point to another ingredient or product, but got '" << to_string(property(current_ingredient, "contained-in")) << "'\n" << end();
   continue;
 }