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

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;
}
}