3 ms·
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 callsi
by steveklabnik 8y 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.
- sacado2 8y agoThank you Steve. I'll have a look at map_err().