We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96bd3dd + 913231f commit 03f0f17Copy full SHA for 03f0f17
NutshellApi.php
@@ -160,6 +160,9 @@ protected function _getApiEndpointForUser($username) {
160
curl_close($curl);
161
162
$decoded = $this->json_decode($result);
163
+ if ($decoded->error !== NULL) {
164
+ throw new NutshellApiException($decoded->error->message);
165
+ }
166
return 'https://' . $decoded->result->api . '/api/v1/json';
167
}
168
0 commit comments