Comment on Go: building on the shoulders of giants and stepping on a few toes [video]parentComments−steveklabnik8yIf 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.−sacado28yThank you Steve. I'll have a look at map_err().
Comments
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.
Thank you Steve. I'll have a look at map_err().