about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-20 15:17:23 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-20 15:17:23 -0700
commit21531195d51b62408256b608da93dcf940e77a3c (patch)
tree246ec9457b5fab9dc30d779c0988210c751022fd
parent4d3d1c101e0b71ce9daabc6514b8941a444c1ba0 (diff)
downloadmu-21531195d51b62408256b608da93dcf940e77a3c.tar.gz
1604
-rw-r--r--030container.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/030container.cc b/030container.cc
index 9f337251..cff5dcf1 100644
--- a/030container.cc
+++ b/030container.cc
@@ -156,7 +156,8 @@ case GET_ADDRESS: {
   reagent base = current_instruction().ingredients.at(0);
   long long int base_address = base.value;
   type_number base_type = base.types.at(0);
-  assert(Type[base_type].kind == container);
+  if (Type[base_type].kind != container)
+    raise << "'get' on a non-container in " << current_recipe_name () << ": " << current_instruction().to_string() << '\n' << die();
   assert(is_literal(current_instruction().ingredients.at(1)));
   assert(scalar(ingredients.at(1)));
   long long int offset = ingredients.at(1).at(0);