From 9085ed6312eca1649cefb2e8d080a850774fc31b Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 14 Apr 2019 18:34:52 +0200 Subject: [PATCH] awful.remote: Protect against error(nil) (#2748) Fixes: https://github.com/awesomeWM/awesome/issues/2747 Signed-off-by: Uli Schlachter --- lib/awful/remote.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/remote.lua b/lib/awful/remote.lua index f419ffef..be1f9164 100644 --- a/lib/awful/remote.lua +++ b/lib/awful/remote.lua @@ -25,7 +25,7 @@ if dbus then end local results = { pcall(f) } if not table.remove(results, 1) then - return "s", "Error during execution: " .. results[1] + return "s", "Error during execution: " .. tostring(results[1]) end local retvals = {} for _, v in ipairs(results) do