about summary refs log tree commit diff stats
path: root/032array.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-19 15:19:36 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-19 15:19:36 -0800
commit15c44292f0c338ace40ab85dcf5b4b9bf04e997f (patch)
treeea3233038e5703a5167c7665f9b446cf12b5fb41 /032array.cc
parent6cc999ae812b835786f08a0b8d958a545c3d8ef0 (diff)
downloadmu-15c44292f0c338ace40ab85dcf5b4b9bf04e997f.tar.gz
2671 - never use debug_string() in traces
It's only for transient debugging.
Diffstat (limited to '032array.cc')
-rw-r--r--032array.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/032array.cc b/032array.cc
index d25ee7fa..cef79b35 100644
--- a/032array.cc
+++ b/032array.cc
@@ -193,7 +193,7 @@ case INDEX: {
   reagent element;
   element.type = new type_tree(*array_element(base.type));
   if (!types_coercible(product, element)) {
-    raise_error << maybe(get(Recipe, r).name) << "'index' on " << base.original_string << " can't be saved in " << product.original_string << "; type should be " << debug_string(element.type) << '\n' << end();
+    raise_error << maybe(get(Recipe, r).name) << "'index' on " << base.original_string << " can't be saved in " << product.original_string << "; type should be " << to_string(element.type) << '\n' << end();
     break;
   }
   break;
@@ -334,7 +334,7 @@ case INDEX_ADDRESS: {
   element.type = new type_tree(*array_element(base.type));
   element.type = new type_tree(get(Type_ordinal, "address"), element.type);
   if (!types_coercible(product, element)) {
-    raise_error << maybe(get(Recipe, r).name) << "'index' on " << base.original_string << " can't be saved in " << product.original_string << "; type should be " << debug_string(element.type) << '\n' << end();
+    raise_error << maybe(get(Recipe, r).name) << "'index' on " << base.original_string << " can't be saved in " << product.original_string << "; type should be " << to_string(element.type) << '\n' << end();
     break;
   }
   break;