not sending nil results from lua

This commit is contained in:
Florian Nücke 2014-02-24 23:26:56 +01:00
parent cd490f7ae2
commit 6116ef3942

View File

@ -338,7 +338,7 @@ local result, reason = pcall(function()
print("Error: " .. tostring(reason))
elseif type(reason) == "function" then
callback = reason
else
elseif reason then
line = tostring(reason)
end
end