189
The ???? operator
(programming.dev)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
You can also do
map_err
, which is a bit cleaner while keeping the mapping obvious. If you really need to do some logic on error, extracting that to the calling function is often better.