awful.remote: Protect against error(nil) (#2748)

Fixes: https://github.com/awesomeWM/awesome/issues/2747
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2019-04-14 18:34:52 +02:00 committed by Emmanuel Lepage Vallée
parent dc1f87ef84
commit 9085ed6312
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ if dbus then
end end
local results = { pcall(f) } local results = { pcall(f) }
if not table.remove(results, 1) then if not table.remove(results, 1) then
return "s", "Error during execution: " .. results[1] return "s", "Error during execution: " .. tostring(results[1])
end end
local retvals = {} local retvals = {}
for _, v in ipairs(results) do for _, v in ipairs(results) do