Unwrap doesn't return the base error
Author: yaziineCreated Feb 13, 2020Updated Aug 21, 2020
Wrapping an error with errors.Wrap, unwrapping it with errors.Unwrap returns the whole error and not the base one. Is it intentional?
Source: pkg/errors
Wrapping an error with errors.Wrap, unwrapping it with errors.Unwrap returns the whole error and not the base one. Is it intentional?
Source: pkg/errors