From 241d582c55b8b7f0ff92d894f16106602281ee7e Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 14 Oct 2012 16:58:54 +0200 Subject: [PATCH] gears.object: Give better error messages It helps a lot to know which signal does not exist. That should make it a lot easier to look for the "guily" code without having to resort to the backtrace. Signed-off-by: Uli Schlachter --- lib/gears/object.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gears/object.lua.in b/lib/gears/object.lua.in index 4782314c8..2a3e5ef20 100644 --- a/lib/gears/object.lua.in +++ b/lib/gears/object.lua.in @@ -27,7 +27,7 @@ end local function find_signal(obj, name, error_msg) check(obj) if not obj._signals[name] then - error("Trying to " .. error_msg .. " non-existent signal") + error("Trying to " .. error_msg .. " non-existent signal '" .. name .. "'") end return obj._signals[name] end