Skip to content

Commit

Permalink
Set Postmark status code in validation exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurian Sluiman committed Nov 7, 2014
1 parent 8a4621d commit 025b982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SlmMail/Service/PostmarkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ private function parseResponse(HttpResponse $response)
case 422:
throw new Exception\ValidationErrorException(sprintf(
'An error occured on Postmark (error code %s), message: %s', $result['ErrorCode'], $result['Message']
));
), (int) $result['ErrorCode']);
case 500:
throw new Exception\RuntimeException('Postmark server error, please try again');
default:
Expand Down

0 comments on commit 025b982

Please sign in to comment.