Skip to content

Commit

Permalink
Add additional information into exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
altwohill committed May 10, 2019
1 parent cf0aefd commit b1f166e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/controller/PxPaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ public function submit()
$this->redirect($response->URI);
} else {
$error = $response->responsetext ? $response->responsetext : $rawResponse;
throw new Exception("Error message from DPS: $error");
throw new Exception("Error message from DPS: `$error`. Request was: `$xml`");
}
} else {
$error = ($rawResponse) ? $rawResponse : curl_error($ch);
throw new Exception("Error communicating with DPS: $error");
throw new Exception("Error communicating with DPS:`$error`. Request was: `$xml`");
}

}
Expand Down

0 comments on commit b1f166e

Please sign in to comment.