]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
add the type for the invalid-type-for-global message
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 18:37:10 +0000 (20:37 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 18:37:10 +0000 (20:37 +0200)
ir.c

diff --git a/ir.c b/ir.c
index 37ce2b0c199edd19f6034616091fc90fcf32c4b2..a208bc5bf2679e2f5fa331153ba3e86c6c53a336 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -2740,7 +2740,8 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global)
             return true;
     default:
         /* refuse to create 'void' type or any other fancy business. */
-        irerror(global->context, "Invalid type for global variable %s\n", global->name);
+        irerror(global->context, "Invalid type for global variable `%s`: %s\n",
+                global->name, type_name[global->vtype]);
         return false;
     }
 }