diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-07-03 11:17:03 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-07-03 11:17:03 -0700 |
commit | 16a9b3faf2d5402c7d2427ab5c813d9714e41820 (patch) | |
tree | 0f6002911a5638dc8f52b71919994b7defec2572 | |
parent | fb416e6fbf61af7bc93b0d219cd392586a4153e3 (diff) | |
download | mu-16a9b3faf2d5402c7d2427ab5c813d9714e41820.tar.gz |
3097
-rw-r--r-- | 021check_instruction.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc index 97d16fe8..63483df1 100644 --- a/021check_instruction.cc +++ b/021check_instruction.cc @@ -22,7 +22,7 @@ void check_instruction(const recipe_ordinal r) { // Primitive Recipe Checks case COPY: { if (SIZE(inst.products) != SIZE(inst.ingredients)) { - raise << "ingredients and products should match in '" << to_original_string(inst) << "'\n" << end(); + raise << maybe(get(Recipe, r).name) << "ingredients and products should match in '" << to_original_string(inst) << "'\n" << end(); break; } for (int i = 0; i < SIZE(inst.ingredients); ++i) { @@ -48,7 +48,7 @@ void check_instruction(const recipe_ordinal r) { def main [ 1:number <- copy 34, 35 ] -+error: ingredients and products should match in '1:number <- copy 34, 35' ++error: main: ingredients and products should match in '1:number <- copy 34, 35' :(scenario write_scalar_to_array_disallowed) % Hide_errors = true; |