mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
luaA_xrdb_get_value: add resource name/class to warning
This commit is contained in:
parent
a7b281294c
commit
5c3734e583
1 changed files with 4 additions and 1 deletions
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 a new issue