Skip to content

Commit

Permalink
throw exception on failed outcome
Browse files Browse the repository at this point in the history
  • Loading branch information
simonyoti committed Jan 26, 2017
1 parent c9319e4 commit 078fda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Yoti/YotiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function getActivityDetails($encryptedConnectToken = null)
$encryptedData = $this->getEncryptedData($this->_receipt['other_party_profile_content']);

// check response was success
if (!$this->getOutcome() !== self::OUTCOME_SUCCESS)
if ($this->getOutcome() !== self::OUTCOME_SUCCESS)
{
throw new \Exception("Outcome was unsuccessful");
}
Expand Down

0 comments on commit 078fda6

Please sign in to comment.