3 ms·
> If it's an actionable error, catch it as low as you can action on it Don't you lose context and the ability to give a more specific error message by catching
by ParetoOptimal 4y ago
> If it's an actionable error, catch it as low as you can action on it
Don't you lose context and the ability to give a more specific error message by catching low?
- sethammons 4y agosometimes, yes. Also, sometimes you lose context by logging too high. It is a Goldilocks thing. What I've started wanting is a system where you attach key-value pairs to an error condition and that error bubbles up to as high in the stack as possible and then reports the error with all key-value pairs that it picked up on the propagation back up the stack.