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:
parent
dc1f87ef84
commit
9085ed6312
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue