about summary refs log tree commit diff stats
path: root/020run.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-05-26 16:43:18 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-05-26 17:36:16 -0700
commit2b25071710656d7a755c2f66c99734cd7990d1ba (patch)
treef4e3a83d6397343c7c225a354f4f2c837aef8190 /020run.cc
parent5e320aa049bc1d5ad78eec23be0127f4a8d6ec3d (diff)
downloadmu-2b25071710656d7a755c2f66c99734cd7990d1ba.tar.gz
3877
Diffstat (limited to '020run.cc')
-rw-r--r--020run.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/020run.cc b/020run.cc
index fdf8244a..084cafbb 100644
--- a/020run.cc
+++ b/020run.cc
@@ -94,7 +94,7 @@ void run_current_routine() {
     //: used by a later layer
     Writing_products_of_instruction = true;
     if (SIZE(products) < SIZE(current_instruction().products)) {
-      raise << SIZE(products) << " vs " << SIZE(current_instruction().products) << ": failed to write to all products in '" << current_instruction().original_string << "'\n" << end();
+      raise << SIZE(products) << " vs " << SIZE(current_instruction().products) << ": failed to write to all products in '" << to_original_string(current_instruction()) << "'\n" << end();
     }
     else {
       for (int i = 0;  i < SIZE(current_instruction().products);  ++i)
@@ -322,11 +322,11 @@ void write_memory(reagent/*copy*/ x, const vector<double>& data) {
   if (is_literal(x)) return;
   // End Preprocess write_memory(x, data)
   if (x.value == 0) {
-    raise << "can't write to location 0 in '" << current_instruction().original_string << "'\n" << end();
+    raise << "can't write to location 0 in '" << to_original_string(current_instruction()) << "'\n" << end();
     return;
   }
   if (size_mismatch(x, data)) {
-    raise << maybe(current_recipe_name()) << "size mismatch in storing to '" << x.original_string << "' (" << size_of(x) << " vs " << SIZE(data) << ") at '" << current_instruction().original_string << "'\n" << end();
+    raise << maybe(current_recipe_name()) << "size mismatch in storing to '" << x.original_string << "' (" << size_of(x) << " vs " << SIZE(data) << ") at '" << to_original_string(current_instruction()) << "'\n" << end();
     return;
   }
   // End write_memory(x) Special-cases