edit API_Exeption message -> probably api key is missing or wrong

This commit is contained in:
Marc Michalsky forumZFD 2020-09-30 15:29:31 +02:00
parent 81bd4bff44
commit e8cbf505a9
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -40,7 +40,9 @@ class TwingleApiCall {
curl_close($curl);
if (empty($response)) {
throw new \API_Exception("Twingle API call failed");
throw new \API_Exception(
"Twingle API call failed" . PHP_EOL .
"Please check your api key.");
}
$this->organisationId = array_column($response, 'id');