about summary refs log tree commit diff stats
path: root/046global.cc
diff options
context:
space:
mode:
Diffstat (limited to '046global.cc')
-rw-r--r--046global.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/046global.cc b/046global.cc
index caab3d38..757c2a17 100644
--- a/046global.cc
+++ b/046global.cc
@@ -50,7 +50,7 @@ if (x.name == "global-space") {
       || !x.type->right->right
       || x.type->right->right->value != get(Type_ordinal, "location")
       || x.type->right->right->right) {
-    raise << maybe(current_recipe_name()) << "'global-space' should be of type address:array:location, but tried to write " << to_string(data) << '\n' << end();
+    raise << maybe(current_recipe_name()) << "'global-space' should be of type address:array:location, but tried to write '" << to_string(x.type) << "'\n" << end();
   }
   if (Current_routine->global_space)
     raise << "routine already has a global-space; you can't over-write your globals" << end();