light: print key name for Key length > MAX_ENT_KEY-1 error

This commit is contained in:
Eric Wasylishen 2019-08-10 20:42:16 -06:00
parent 89365949bc
commit af4deba237
1 changed files with 1 additions and 1 deletions

View File

@ -904,7 +904,7 @@ EntData_Parse(const char *entdata)
if (keystr == "}")
break;
if (keystr.length() > MAX_ENT_KEY - 1)
Error("%s: Key length > %i", __func__, MAX_ENT_KEY - 1);
Error("%s: Key length > %i: '%s'", __func__, MAX_ENT_KEY - 1, keystr.c_str());
/* parse value */
data = COM_Parse(data);