luaA_xrdb_get_value: add resource name/class to warning
This commit is contained in:
parent
a7b281294c
commit
5c3734e583
5
xrdb.c
5
xrdb.c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue