Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PrefillGravityForms/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ protected function handleCurl(array $args, string $transientKey, array $location
$httpStatus = curl_getinfo($curl, CURLINFO_HTTP_CODE);

if (200 !== $httpStatus) {
throw new Exception(sprintf('%s', $decoded['detail'] ?? ($decoded['Error Details'] ?? 'Request failed, error unknown')), is_int($httpStatus) ? $httpStatus : 500);
throw new Exception("Unexpected HTTP status. Response: $output", is_int($httpStatus) ? $httpStatus : 500);
}

$this->handleTransient($response, $transientKey, $locationBsnInResponse);
Expand Down