Skip to content

Commit

Permalink
chore: use errors.Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 27, 2023
1 parent c0e528f commit cd6e222
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion courier/http_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/pkg/errors"

"github.com/ory/kratos/courier/template"
"github.com/ory/kratos/request"
Expand Down Expand Up @@ -96,7 +97,7 @@ func (c *httpChannel) Dispatch(ctx context.Context, msg Message) (err error) {
return nil
}

err = fmt.Errorf(
err = errors.Errorf(
"unable to dispatch mail delivery because upstream server replied with status code %d",
res.StatusCode,
)
Expand Down

0 comments on commit cd6e222

Please sign in to comment.