You mean `pcall(runCode)`? Also, I think in general `ypcall` should be preferredBlueTaslem18071— 9y
0
Oh that's useful. It's like a Lua try catch. Is there anyway to use the exception as an argument? In Java try{SOME_CODE;}catch(SOME ERROR){SOME_OTHER_CODE;}DewnOracle115— 9y
0
@DewnOracle: The second return value of `pcall` is the error message (as a string). You can use `xpcall` to get a bit more fine-tuned error handling by passing a function to run (in the erroring scope)BlueTaslem18071— 9y
0
That typo is the reason I prefer anonymous functions to doing this. Yeah, ypcall is probably better if the function yields.adark5487— 9y