about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-22 22:11:51 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-22 22:11:51 -0700
commitfd35cc3f267d180cd843d202237a74ff3b68a0e1 (patch)
tree30877bcfcca3355f758a9c1058d0733d22b9a545 /030container.cc
parent2e534c0e3a509e1d96a4c81f81f8a6dd8495ebc4 (diff)
downloadmu-fd35cc3f267d180cd843d202237a74ff3b68a0e1.tar.gz
2060 - even more efficient up/down
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/030container.cc b/030container.cc
index 808b64fe..5a4803f8 100644
--- a/030container.cc
+++ b/030container.cc
@@ -135,7 +135,7 @@ case GET: {
     break;
   }
   if (base.types.empty() || Type[base.types.at(0)].kind != container) {
-    raise << current_recipe_name () << ": first ingredient of 'get' should be a container, but got " << base.original_string << '\n' << end();
+    raise << current_recipe_name () << ": first ingredient of 'get' should be a container, but got " << current_instruction().ingredients.at(0).original_string << '\n' << end();
     break;
   }
   type_ordinal base_type = base.types.at(0);
@@ -215,7 +215,7 @@ case GET_ADDRESS: {
     break;
   }
   if (base.types.empty() || Type[base.types.at(0)].kind != container) {
-    raise << current_recipe_name () << ": first ingredient of 'get-address' should be a container, but got " << base.original_string << '\n' << end();
+    raise << current_recipe_name () << ": first ingredient of 'get-address' should be a container, but got " << current_instruction().ingredients.at(0).original_string << '\n' << end();
     break;
   }
   type_ordinal base_type = base.types.at(0);