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.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/031address.cc b/031address.cc
index c4b260d1..79c951d0 100644
--- a/031address.cc
+++ b/031address.cc
@@ -78,7 +78,8 @@ void lookup_memory(reagent& x) {
 bool canonize_type(reagent& r) {
   while (has_property(r, "lookup")) {
     if (!r.type || r.type->value != get(Type_ordinal, "address")) {
-      raise_error << "can't lookup non-address: " << r.original_string << '\n' << end();
+      raise_error << "can't lookup non-address: " << r.to_string() << '\n' << end();
+      dump_types(r.type, cerr);  cerr << '\n';
       return false;
     }
     drop_address_from_type(r);