about summary refs log tree commit diff stats
path: root/035lookup.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-05-29 11:52:19 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-05-29 11:52:19 -0700
commit0bc6fbd396f35e8dfd5cf5f5827b4ba665c3fcdf (patch)
tree7e3cdc8c5b9683d5635054c8ffd102a9edb26111 /035lookup.cc
parent4945e77a58f3ab10069461e86e5e10c06e91e489 (diff)
downloadmu-0bc6fbd396f35e8dfd5cf5f5827b4ba665c3fcdf.tar.gz
3896
Diffstat (limited to '035lookup.cc')
-rw-r--r--035lookup.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/035lookup.cc b/035lookup.cc
index 842ba01d..b5a1ba02 100644
--- a/035lookup.cc
+++ b/035lookup.cc
@@ -74,7 +74,7 @@ def main [
   1:address:num <- copy 0
   2:num <- copy 1:address:num/lookup
 ]
-+error: tried to /lookup 0 in '2:num <- copy 1:address:num/lookup'
++error: main: tried to /lookup 0 in '2:num <- copy 1:address:num/lookup'
 
 :(code)
 void canonize(reagent& x) {
@@ -108,7 +108,7 @@ void lookup_memory_core(reagent& x, bool check_for_null) {
   }
   else if (check_for_null) {
     if (Current_routine)
-      raise << "tried to /lookup 0 in '" << to_original_string(current_instruction()) << "'\n" << end();
+      raise << maybe(current_recipe_name()) << "tried to /lookup 0 in '" << to_original_string(current_instruction()) << "'\n" << end();
     else
       raise << "tried to /lookup 0\n" << end();
   }