3 ms·
> In addition, with this crate, you will also get the information that this error was returned in washing_machine.rs:3562. Thanks, I guess? Yes, that's awesome
by simiones 3y ago
> In addition, with this crate, you will also get the information that this error was returned in washing_machine.rs:3562. Thanks, I guess?
Yes, that's awesome. I can either dig into the code myself or at least forward it to the project and get a great pinpointed report (at least some of the time). Much better than searching for strings and trying to guess what was parametrized.
This is definitely something that you would want in production/in customer deployments. The only reason not to want this is extremely tight optimization scenarios, where paying the cost of the larger error type is too much (or if you're returning errors on some hot path).