From 5c3734e583bfb71854dec97408a4c5aa282715a5 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 11 Jul 2015 22:51:51 +0200 Subject: [PATCH] luaA_xrdb_get_value: add resource name/class to warning --- xrdb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xrdb.c b/xrdb.c index f32693c71..a349b4505 100644 --- a/xrdb.c +++ b/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; } }