c3d.errorhandler

A callback function which gets ran when your program causes an exception. While also providing you with the error message so you can handle it somehow instead of just going to the default C3D error screen. returns whether this error should exit to the C3D error screen (true/false)

arguments

returns

function c3d.errorhandler(msg)
    print("Something fucked up.. "..tostring(msg))

    return false
end