Skip to content
Snippets Groups Projects

Resolve "CI/CD for SmartDataContext"

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -42,10 +42,13 @@ class SmartDataContextApiClient
$response = curl_exec($ch);
$error = curl_error($ch);
$http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($error) {
return ['errors' => [$error]];
} else if ($http_status == 401) {
return ['errors' => ["Unauthorized (invalid certificate)."]];
}
return json_decode($response, true);
Loading