Replace errors.Wrap with errors.WithStack

This commit is contained in:
Matthew Penner 2020-07-31 21:22:01 -06:00
parent 5b999db7f3
commit 8f1ebdd39f

View File

@ -80,7 +80,7 @@ func (c RegistryConfiguration) Base64() (string, error) {
b, err := json.Marshal(authConfig)
if err != nil {
return "", errors.Wrap(err, "failed to marshal AuthConfig")
return "", errors.WithStack(err)
}
return base64.URLEncoding.EncodeToString(b), nil