diff options
Diffstat (limited to '042name.cc')
-rw-r--r-- | 042name.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/042name.cc b/042name.cc index fe3c43a7..ed322d54 100644 --- a/042name.cc +++ b/042name.cc @@ -223,7 +223,7 @@ if (inst.operation == Recipe_ordinal["get"] assert(SIZE(inst.ingredients) >= 2); //? cout << inst.ingredients.at(1).to_string() << '\n'; //? 1 if (!is_literal(inst.ingredients.at(1))) - raise << inst.to_string() << ": expected literal; got " << inst.ingredients.at(1).to_string() << '\n' << die(); + raise << Recipe[r].name << ": expected ingredient 1 of " << (inst.operation == Recipe_ordinal["get"] ? "'get'" : "'get-address'") << " to have type 'offset'; got " << inst.ingredients.at(1).original_string << '\n' << die(); if (inst.ingredients.at(1).name.find_first_not_of("0123456789") != string::npos) { // since first non-address in base type must be a container, we don't have to canonize type_ordinal base_type = skip_addresses(inst.ingredients.at(0).types); |