From 9dcbec398c5aedf27757365cc1f4c7c36e138539 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 20 May 2016 22:09:06 -0700 Subject: 2990 Standardize quotes around reagents in error messages. I'm still sure there's issues. For example, the messages when type-checking 'copy'. I'm not putting quotes around them because in layer 60 I end up creating dilated reagents, and then it's a bit much to have quotes and (two kinds of) brackets. But I'm sure I'm doing that somewhere.. --- 035lookup.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '035lookup.cc') diff --git a/035lookup.cc b/035lookup.cc index 6aa7d2a2..382d72aa 100644 --- a/035lookup.cc +++ b/035lookup.cc @@ -81,7 +81,7 @@ void canonize(reagent& x) { void lookup_memory(reagent& x) { if (!x.type || x.type->value != get(Type_ordinal, "address")) { - raise << maybe(current_recipe_name()) << "tried to /lookup " << x.original_string << " but it isn't an address\n" << end(); + raise << maybe(current_recipe_name()) << "tried to /lookup '" << x.original_string << "' but it isn't an address\n" << end(); return; } // compute value @@ -158,7 +158,7 @@ assert(!has_property(element, "lookup")); bool canonize_type(reagent& r) { while (has_property(r, "lookup")) { if (!r.type || r.type->value != get(Type_ordinal, "address")) { - raise << "can't lookup non-address: " << to_string(r) << ": " << to_string(r.type) << '\n' << end(); + raise << "can't lookup non-address: '" << to_string(r) << "': '" << to_string(r.type) << "'\n" << end(); return false; } drop_from_type(r, "address"); @@ -241,7 +241,7 @@ canonize(base); def main [ 1:number/raw <- new number:type ] -+error: main: product of 'new' has incorrect type: 1:number/raw <- new number:type ++error: main: product of 'new' has incorrect type: '1:number/raw <- new number:type' :(after "Update NEW product in Check") canonize_type(product); @@ -436,7 +436,7 @@ def main [ properties.push_back(pair("lookup", NULL)); } if (name.empty()) - raise << "illegal name " << original_string << '\n' << end(); + raise << "illegal name '" << original_string << "'\n" << end(); } //:: helpers for debugging -- cgit 1.4.1-2-gfad0