diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-09-26 11:31:15 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-09-26 11:31:15 -0700 |
commit | 48b63d31d7e02e28239adfca460a2163d6566900 (patch) | |
tree | 511fdc23eed0caf54db0cf0a39fa3f04a8405c7d | |
parent | ac397f2ec45a9fd0b4ac579c4dc027bdb37fa47b (diff) | |
download | mu-48b63d31d7e02e28239adfca460a2163d6566900.tar.gz |
2209
-rw-r--r-- | 020run.cc | 8 |
1 files 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 '<-'. |