diff options
Diffstat (limited to '030container.cc')
-rw-r--r-- | 030container.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/030container.cc b/030container.cc index f90e92ba..c49aa877 100644 --- a/030container.cc +++ b/030container.cc @@ -107,8 +107,10 @@ case GET: { reagent base = current_instruction().ingredients.at(0); long long int base_address = base.value; type_ordinal base_type = base.types.at(0); - if (Type[base_type].kind != container) - raise << "'get' on a non-container in " << current_recipe_name () << ": " << current_instruction().to_string() << '\n' << die(); + if (Type[base_type].kind != container) { + raise << current_recipe_name () << ": 'get' on a non-container " << base.original_string << '\n'; + break; + } assert(is_literal(current_instruction().ingredients.at(1))); assert(scalar(ingredients.at(1))); long long int offset = ingredients.at(1).at(0); |