From: Wolfgang (Blub) Bumiller Date: Sun, 19 Aug 2012 18:37:10 +0000 (+0200) Subject: add the type for the invalid-type-for-global message X-Git-Tag: 0.1-rc1~143 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c2925b61f216606c774423dcc44cff70485323ec;p=xonotic%2Fgmqcc.git add the type for the invalid-type-for-global message --- diff --git a/ir.c b/ir.c index 37ce2b0..a208bc5 100644 --- 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; } }