about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-09-01 20:29:50 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-09-01 20:29:50 -0700
commit86778aa4265a4845c8da1f3f78bdb68c14a58c4a (patch)
tree328fc5272274ccf1d6f9fbd0819276cf2481b4f7
parentdeba749420c2b45e8db64524aa76d547d0462f09 (diff)
downloadmu-86778aa4265a4845c8da1f3f78bdb68c14a58c4a.tar.gz
2126
-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