Skip to content

Commit

Permalink
Reversed order of parameters in exception
Browse files Browse the repository at this point in the history
Closes SEOshop#14
  • Loading branch information
ls-michielrensen committed Nov 30, 2016
1 parent 9313c30 commit 4c971f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebshopappApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ private function sendRequest($url, $method, $payload = null)
{
if (!$payload || !is_array($payload))
{
throw new WebshopAppApiException(100, 'Invalid payload');
throw new WebshopAppApiException('Invalid payload', 100);
}

$curlOptions = array(
Expand Down

0 comments on commit 4c971f5

Please sign in to comment.