4 ms·
The commenter you're replying to is simply showing how logging and context and other things can be done in conjunction with the question mark syntax sugar. If y
by wavemode 5y ago
The commenter you're replying to is simply showing how logging and context and other things can be done in conjunction with the question mark syntax sugar. If you don't want to use the question mark at all, you're still free to explicitly pattern match on the Result object and do whatever complex thing you want with the error object before returning it.