Skip to content

Commit

Permalink
Merge pull request #31 from webarchitect609/fix/contact_id_return_type
Browse files Browse the repository at this point in the history
Fix \Snowcap\Emarsys\Client::getContactId method
  • Loading branch information
tim-bezhashvyly authored Nov 26, 2016
2 parents 5903394 + a9cd875 commit 6615e4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Snowcap/Emarsys/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function deleteContact(array $data)
* @param string $fieldId
* @param string $fieldValue
* @throws Exception\ClientException
* @return Response
* @return int
*/
public function getContactId($fieldId, $fieldValue)
{
Expand All @@ -292,7 +292,7 @@ public function getContactId($fieldId, $fieldValue)
return $data['id'];
}

throw new ClientException('Missing "id" in response');
throw new ClientException($response->getReplyText(), $response->getReplyCode());
}

/**
Expand Down

0 comments on commit 6615e4f

Please sign in to comment.