safe_pcall A utility function that wraps errorable functions into results. safe_pcall(error, "hi, this is error"):catch(function(errorValue) print(errorValue) end)