2 ms·
This is generally a bad idea in any production code. You normally want to add context to the error so that your logging captures the issue at the very minimum.
by sfifs 8y ago
This is generally a bad idea in any production code. You normally want to add context to the error so that your logging captures the issue at the very minimum. You may want to do cleanup in the function etc. I almost never have written this style of code in many years now.