about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--020run.cc2
-rw-r--r--030container.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/020run.cc b/020run.cc
index dd66d8e5..1e7fc8ec 100644
--- a/020run.cc
+++ b/020run.cc
@@ -246,7 +246,7 @@ void write_memory(reagent x, vector<double> data) {
   if (is_literal(x)) return;
   long long int base = x.value;
   if (size_mismatch(x, data)) {
-    raise << current_recipe_name() << ": size mismatch in storing to " << x.original_string << " at '" << current_instruction().to_string() << "'\n" << end();
+    raise << current_recipe_name() << ": size mismatch in storing to " << x.original_string << " (" << size_of(x.types) << " vs " << SIZE(data) << ") at '" << current_instruction().to_string() << "'\n" << end();
     return;
   }
   for (long long int offset = 0; offset < SIZE(data); ++offset) {
diff --git a/030container.cc b/030container.cc
index 14166047..61fad420 100644
--- a/030container.cc
+++ b/030container.cc
@@ -32,7 +32,7 @@ recipe main [
 recipe main [
   2:point <- copy 1:number
 ]
-+warn: main: size mismatch in storing to 2:point at '2:point <- copy 1:number'
++warn: main: size mismatch in storing to 2:point (2 vs 1) at '2:point <- copy 1:number'
 
 :(before "End Mu Types Initialization")
 // A more complex container, containing another container as one of its