- Issue created by @awolfey
When the module can't connect to the API, an error is thrown when throwing an exception if $result is false.
if ($result === false || $result['status-code'] != 200) {
throw new Exception(
'Request to Customer Secrets API has failed: status code ' . isset($result['status-code']) ? $result['status-code'] : 'n/a'
);
}
Mock an API connection failure.
Check for connection failure separately from non-200 status.
Active
1.0
Code