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.
1 parent 96bd3dd commit 913231fCopy full SHA for 913231f
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