From 797edfd041c2a8025c6273cea92a1a1ac481d5cc Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 18 Mar 2017 20:44:48 -0700 Subject: 3799 --- 013update_operation.cc | 4 ++-- 038new_text.cc | 2 +- html/013update_operation.cc.html | 4 ++-- html/038new_text.cc.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/013update_operation.cc b/013update_operation.cc index 806f69c2..0468e80d 100644 --- a/013update_operation.cc +++ b/013update_operation.cc @@ -13,7 +13,7 @@ void update_instruction_operations(const recipe_ordinal r) { instruction& inst = caller.steps.at(index); if (inst.is_label) continue; if (!contains_key(Recipe_ordinal, inst.name)) { - raise << maybe(caller.name) << "instruction '" << inst.name << "' has no recipe\n" << end(); + raise << maybe(caller.name) << "instruction '" << inst.name << "' has no recipe in '" << to_original_string(inst) << "'\n" << end(); continue; } inst.operation = get(Recipe_ordinal, inst.name); @@ -32,4 +32,4 @@ string maybe(string s) { def main [ 1:number , copy 0 # typo: ',' instead of '<-' ] -+error: main: instruction '1:number' has no recipe ++error: main: instruction '1:number' has no recipe in '1:number copy, 0' diff --git a/038new_text.cc b/038new_text.cc index d65ac63d..d6019e5e 100644 --- a/038new_text.cc +++ b/038new_text.cc @@ -69,7 +69,7 @@ int new_mu_text(const string& contents) { def main [ [abc] ] -+error: main: instruction '[abc]' has no recipe ++error: main: instruction '[abc]' has no recipe in '[abc] ' //: stash recognizes strings diff --git a/html/013update_operation.cc.html b/html/013update_operation.cc.html index 044050ad..437ffbd7 100644 --- a/html/013update_operation.cc.html +++ b/html/013update_operation.cc.html @@ -77,7 +77,7 @@ if ('onhashchange' in window) { 13 ¦ instruction& inst = caller.steps.at(index); 14 ¦ if (inst.is_label) continue; 15 ¦ if (!contains_key(Recipe_ordinal, inst.name)) { -16 ¦ ¦ raise << maybe(caller.name) << "instruction '" << inst.name << "' has no recipe\n" << end(); +16 ¦ ¦ raise << maybe(caller.name) << "instruction '" << inst.name << "' has no recipe in '" << to_original_string(inst) << "'\n" << end(); 17 ¦ ¦ continue; 18 ¦ } 19 ¦ inst.operation = get(Recipe_ordinal, inst.name); @@ -96,7 +96,7 @@ if ('onhashchange' in window) { 32 def main [ 33 1:number , copy 0 # typo: ',' instead of '<-' 34 ] -35 +error: main: instruction '1:number' has no recipe +35 +error: main: instruction '1:number' has no recipe in '1:number copy, 0' diff --git a/html/038new_text.cc.html b/html/038new_text.cc.html index f676f23c..d28cf8c8 100644 --- a/html/038new_text.cc.html +++ b/html/038new_text.cc.html @@ -134,7 +134,7 @@ if ('onhashchange' in window) { 69 def main [ 70 [abc] 71 ] - 72 +error: main: instruction '[abc]' has no recipe + 72 +error: main: instruction '[abc]' has no recipe in '[abc] ' 73 74 //: stash recognizes strings 75 -- cgit 1.4.1-2-gfad0