From a36ddb68e12b3f8d99f8525e16a3b5be637a0001 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 10 Jan 2015 16:53:59 +0100 Subject: [PATCH] gears.timer: Don't assert() that no error occured The whole point of this pcall() is that we do not have unprotected Lua errors, because those kill awesome. So instead of assert()ing, let's just print a message. Signed-off-by: Uli Schlachter --- lib/gears/timer.lua.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/gears/timer.lua.in b/lib/gears/timer.lua.in index f0e49d3c..9e7eabdf 100644 --- a/lib/gears/timer.lua.in +++ b/lib/gears/timer.lua.in @@ -33,7 +33,9 @@ function timer:start() local success, message = pcall(function() self:emit_signal("timeout") end) - assert(success, message) + if not success then + print(message) + end return true end) end