Skip to content

Commit

Permalink
Merge pull request #84 from juriansluiman/hotfix/service-error-codes
Browse files Browse the repository at this point in the history
Hotfix/service error codes
  • Loading branch information
bakura10 committed Nov 7, 2014
2 parents d577a89 + 025b982 commit 286c4bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SlmMail/Service/PostageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ private function parseResponse(HttpResponse $response)
throw new Exception\RuntimeException(sprintf(
'An error occurred on Postage, status code: %s%s', $result['response']['status'],
($errors) ? ' (' . $errors . ')' : ''
));
), (int) $result['response']['status']);
}
}

Expand Down
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 286c4bc

Please sign in to comment.