A nice wrinkle with Rust's "?" suffix is that, especially in combination with things like the thiserror crate, it can become multiply wrapped in custom error enums as it bubbles its way up. So, you can have not-much-effort at the error-checking level while ending up with a somewhat usefully annotated error result at your handler. (Admittedly, a bit of map_err can help with that too where a message along with the enum choice is helpful.)
no subject
Date: 2024-06-21 08:25 am (UTC)map_err
can help with that too where a message along with the enum choice is helpful.)