Hacker News new | ask | show | jobs
by steveklabnik 2883 days ago
If you want to transform the error on it, you can either:

1. Define a conversion between the two errors that adds the context.

2. Use .map_err() at the callsite to do the transformation there.

1 comments

Thank you Steve. I'll have a look at map_err().