luaA_xrdb_get_value: add resource name/class to warning

This commit is contained in:
Daniel Hahler 2015-07-11 22:51:51 +02:00
parent a7b281294c
commit 5c3734e583
1 changed files with 4 additions and 1 deletions

5
xrdb.c
View File

@ -67,7 +67,10 @@ int luaA_xrdb_get_value(lua_State *L) {
lua_pushstring(L, (char *)resource_value.addr);
return 1;
} else {
luaA_warn(L, "Failed to get xrdb value");
if (strlen(resource_class))
luaA_warn(L, "Failed to get xrdb value '%s' (class '%s').", resource_name, resource_class);
else
luaA_warn(L, "Failed to get xrdb value '%s'.", resource_name);
return 0;
}
}