Skip to content

Instantly share code, notes, and snippets.

@Mons
Created Jun 25, 2015
Embed
What would you like to do?
local r,e = pcall(function ()
local res = peer:call('box.raise', tostring(box.error.ER_PROC_LUA), "Test die" )
end)
print("call res = ",r," ",e)
local r,e = xpcall(function ()
local res = peer:call('box.raise', tostring(box.error.ER_PROC_LUA), "Test die" )
end, function(...)
print("Error: ",...)
end)
print("After error: ",r, " ",e)
--[[
2015-06-25 17:57:04.595 [3746] 102/debug I> call res = false Test die
2015-06-25 17:57:04.595 [3746] 102/debug I> After error: false C++ exception
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment