When running functions that yield through pcall, any errors still seem to be printed to output. Is this an issue that can be fixed? Would be very useful to avoid unnecessary log cluttering which can be distracting and increase time consumption when debugging, since it calls for reviewing each error to ensure it was handled properly, and can obscure notable errors
This code produces the following output (ideally should not produce any output?):
pcall(function ()
wait()
error 'Should ideally not show up in output'
end)
If you’re using pcall to prevent errors from showing up, you’re using pcall for the wrong reasons…
Ideally you’d want to write code that doesnt error. Does the pcall’d code break the current thread when it errors?
I am using pcall to handle errors from potentially unreliable sources (e.g. external APIs) that throw known, intentional exceptions It does not break the current thread (expected)—just outputs the error (unexpected).
For this bug to be actionable, please provide the sample code you’re using, and the output from this code in event of an error that you feel should be suppressed.