From 48b63d31d7e02e28239adfca460a2163d6566900 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 26 Sep 2015 11:31:15 -0700 Subject: 2209 --- 020run.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/020run.cc b/020run.cc index d6ce68ec..6b28e3ff 100644 --- a/020run.cc +++ b/020run.cc @@ -89,11 +89,11 @@ void run_current_routine() } for (long long int i = 0; i < SIZE(ingredients); ++i) { if (!is_mu_array(current_instruction().ingredients.at(i)) && is_mu_array(current_instruction().products.at(i))) { - raise << "can't copy " << current_instruction().ingredients.at(i).original_string << " to array " << current_instruction().products.at(i).original_string << "\n" << end(); + raise << current_recipe_name() << ": can't copy " << current_instruction().ingredients.at(i).original_string << " to array " << current_instruction().products.at(i).original_string << "\n" << end(); goto finish_instruction; } if (is_mu_array(current_instruction().ingredients.at(i)) && !is_mu_array(current_instruction().products.at(i))) { - raise << "can't copy array " << current_instruction().ingredients.at(i).original_string << " to " << current_instruction().products.at(i).original_string << "\n" << end(); + raise << current_recipe_name() << ": can't copy array " << current_instruction().ingredients.at(i).original_string << " to " << current_instruction().products.at(i).original_string << "\n" << end(); goto finish_instruction; } } @@ -364,14 +364,14 @@ recipe main [ recipe main [ 1:array:number <- copy 34 ] -+warn: can't copy 34 to array 1:array:number ++warn: main: can't copy 34 to array 1:array:number :(scenario write_scalar_to_array_disallowed_2) % Hide_warnings = true; recipe main [ 1:number, 2:array:number <- copy 34, 35 ] -+warn: can't copy 35 to array 2:array:number ++warn: main: can't copy 35 to array 2:array:number //: mu is robust to various combinations of commas and spaces. You just have //: to put spaces around the '<-'. -- cgit 1.4.1-2-gfad0