about summary refs log tree commit diff stats
path: root/031address.cc
diff options
context:
space:
mode:
Diffstat (limited to '031address.cc')
-rw-r--r--031address.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/031address.cc b/031address.cc
index e79ff314..b7b395c6 100644
--- a/031address.cc
+++ b/031address.cc
@@ -25,7 +25,7 @@ recipe main [
 :(before "long long int base = x.value" following "void write_memory(reagent x, vector<double> data)")
 x = canonize(x);
 if (x.value == 0) {
-  raise << "can't write to location 0\n" << end();
+  raise << "can't write to location 0 in '" << current_instruction().to_string() << "'\n" << end();
   return;
 }
 
@@ -37,7 +37,7 @@ recipe main [
   1:address:number/lookup <- copy 34
 ]
 -mem: storing 34 in location 0
-+warn: can't write to location 0
++warn: can't write to location 0 in '1:address:number/lookup <- copy 34'
 
 :(code)
 reagent canonize(reagent x) {