It looks like you're new here. If you want to get involved, click one of these buttons!
local function crash() a[1] = 10 end local status, err = pcall(crash) print(status, err)
local function crash() assert(nil,"crash error") end local status, err = pcall(crash) print(status, err)
Comments
I think the whole idea of assert is to crash if the condition was not met, assert cannot be masked even if used with pcall.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps