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.. --- 041jump_target.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '041jump_target.cc') diff --git a/041jump_target.cc b/041jump_target.cc index 1976084d..8ccd5625 100644 --- a/041jump_target.cc +++ b/041jump_target.cc @@ -68,19 +68,19 @@ void transform_labels(const recipe_ordinal r) { :(code) void replace_offset(reagent& x, /*const*/ map& offset, const int current_offset, const recipe_ordinal r) { if (!is_literal(x)) { - raise << maybe(get(Recipe, r).name) << "jump target must be offset or label but is " << x.original_string << '\n' << end(); + raise << maybe(get(Recipe, r).name) << "jump target must be offset or label but is '" << x.original_string << "'\n" << end(); x.set_value(0); // no jump by default return; } if (x.initialized) return; if (is_integer(x.name)) return; // non-labels will be handled like other number operands if (!is_jump_target(x.name)) { - raise << maybe(get(Recipe, r).name) << "can't jump to label " << x.name << '\n' << end(); + raise << maybe(get(Recipe, r).name) << "can't jump to label '" << x.name << "'\n" << end(); x.set_value(0); // no jump by default return; } if (!contains_key(offset, x.name)) { - raise << maybe(get(Recipe, r).name) << "can't find label " << x.name << '\n' << end(); + raise << maybe(get(Recipe, r).name) << "can't find label '" << x.name << "'\n" << end(); x.set_value(0); // no jump by default return; } @@ -177,4 +177,4 @@ def main [ $target 5:number <- copy 0 ] -+error: main: can't jump to label $target ++error: main: can't jump to label '$target' -- cgit 1.4.1-2-gfad0