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-06 22:48:37 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-05-06 22:48:37 -0700
commita97a00df51316a9246a13f6efb17a8a8f97bbd51 (patch)
tree7c9452c66b103ac7e0514206fd7ddab1670ece08 /035lookup.cc
parent2c91ac0c6a4b77f268e119eb2366dbc440cbc61f (diff)
downloadmu-a97a00df51316a9246a13f6efb17a8a8f97bbd51.tar.gz
3848
Improve an error message.
Still lots of room for improving how we render reagents in errors.
Diffstat (limited to '035lookup.cc')
-rw-r--r--035lookup.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/035lookup.cc b/035lookup.cc
index fa61100b..33b842f8 100644
--- a/035lookup.cc
+++ b/035lookup.cc
@@ -174,7 +174,7 @@ assert(!has_property(element, "lookup"));
 bool canonize_type(reagent& r) {
   while (has_property(r, "lookup")) {
     if (!r.type || r.type->atom || !r.type->left || !r.type->left->atom || r.type->left->value != get(Type_ordinal, "address")) {
-      raise << "can't lookup non-address: '" << to_string(r) << "': '" << to_string(r.type) << "'\n" << end();
+      raise << "cannot perform lookup on '" << r.name << "' because it has non-address type " << to_string(r.type) << '\n' << end();
       return false;
     }
     drop_from_type(r, "address");