diff --git a/Transport/PostmarkApiTransport.php b/Transport/PostmarkApiTransport.php index 610f858..352b2ed 100644 --- a/Transport/PostmarkApiTransport.php +++ b/Transport/PostmarkApiTransport.php @@ -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']);