Right now we use custom error type. In the code we unwrap errors and map them into the custom error type like here. This is inconvenient and leads to lots of extra code.
Details
Use the anyhow crate to propagate errors outward. Unwrap the error and rewrap into a MoproError only at the top level
Acceptance criteria
All MoproError mappings are removed, except for at the top level.
Problem
Right now we use custom error type. In the code we unwrap errors and map them into the custom error type like here. This is inconvenient and leads to lots of extra code.
Details
Use the
anyhow
crate to propagate errors outward. Unwrap the error and rewrap into aMoproError
only at the top levelAcceptance criteria
All
MoproError
mappings are removed, except for at the top level.