Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
3097
Browse files Browse the repository at this point in the history
  • Loading branch information
akkartik committed Jul 3, 2016
1 parent fb416e6 commit 16a9b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 021check_instruction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 16a9b3f

Please sign in to comment.