Skip to content

Commit

Permalink
[Mailer] Use %d instead of %s for error code in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 23, 2020
1 parent afaaca6 commit 86f56ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Transport/PostmarkApiTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected function doSendApi(SentMessage $sentMessage, Email $email, Envelope $e

$result = $response->toArray(false);
if (200 !== $response->getStatusCode()) {
throw new HttpTransportException(sprintf('Unable to send an email: %s (code %s).', $result['Message'], $result['ErrorCode']), $response);
throw new HttpTransportException(sprintf('Unable to send an email: %s (code %d).', $result['Message'], $result['ErrorCode']), $response);
}

$sentMessage->setMessageId($result['MessageID']);
Expand Down

0 comments on commit 86f56ae

Please sign in to comment.