From a6718a4a0da1cc90e44ee753665674ceb9450f95 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 9 Feb 2015 20:20:18 +0100 Subject: [PATCH] Print debug.traceback() with imagebox:set_image, when reading image failed This made it easier to figure out where a file causing an error was coming from, but I could imagine that this could become too noisy, and that there is/should probably be a more streamlined way to enable more verbose logging / error output. --- lib/wibox/widget/imagebox.lua.in | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/wibox/widget/imagebox.lua.in b/lib/wibox/widget/imagebox.lua.in index 5963d0ea9..fa4010b62 100644 --- a/lib/wibox/widget/imagebox.lua.in +++ b/lib/wibox/widget/imagebox.lua.in @@ -83,6 +83,7 @@ function imagebox:set_image(image) local success, result = pcall(surface.load, image) if not success then print("Error while reading '" .. image .. "': " .. result) + print(debug.traceback()) return false end image = result