4 ms·
This particular one is just how I decided to take context. You could easily keep the original error type and add context onto the struct as an additional field.
by vsgherzi 10mo ago
This particular one is just how I decided to take context. You could easily keep the original error type and add context onto the struct as an additional field. Or an alternative could be to take a string and the error type. The I’m using someone’s library because I don’t trust myself argument doesn’t really track for me.