about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-21 10:09:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-21 10:09:32 -0700
commit6735e52d147f7751613210bec7a69183220f9f8c (patch)
treee1b0f6a205bab8a3ae2b4734fa871a7488e0f5f9
parentddbb5a5f552de52d80d3b1c0f4b9b95012a2c9bc (diff)
downloadmu-6735e52d147f7751613210bec7a69183220f9f8c.tar.gz
2050
-rw-r--r--036call_reply.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/036call_reply.cc b/036call_reply.cc
index f5ccc7f2..8d3f1395 100644
--- a/036call_reply.cc
+++ b/036call_reply.cc
@@ -44,7 +44,7 @@ case REPLY: {
       if (ingredient_index >= SIZE(caller_instruction.ingredients))
         raise << current_recipe_name() << ": 'same-as-ingredient' metadata overflows ingredients in: " << caller_instruction.to_string() << '\n' << end();
       if (!is_dummy(caller_instruction.products.at(i)) && caller_instruction.products.at(i).value != caller_instruction.ingredients.at(ingredient_index).value)
-        raise << current_recipe_name() << ": 'same-as-ingredient' result " << caller_instruction.products.at(i).value << " from call to " << callee << " must be location " << caller_instruction.ingredients.at(ingredient_index).value << '\n' << end();
+        raise << current_recipe_name() << ": 'same-as-ingredient' product from call to " << callee << " must be " << caller_instruction.ingredients.at(ingredient_index).original_string << " rather than " << caller_instruction.products.at(i).original_string << '\n' << end();
     }
   }
   // End Reply
@@ -81,7 +81,7 @@ recipe test1 [
   10:address:number <- next-ingredient
   reply 10:address:number/same-as-ingredient:0
 ]
-+warn: main: 'same-as-ingredient' result 2 from call to test1 must be location 1
++warn: main: 'same-as-ingredient' product from call to test1 must be 1:number rather than 2:number
 
 :(scenario reply_same_as_ingredient_dummy)
 % Hide_warnings = true;