diff --git a/src/plib/library/Client.php b/src/plib/library/Client.php index 0b3ca65..941f6ce 100644 --- a/src/plib/library/Client.php +++ b/src/plib/library/Client.php @@ -101,7 +101,7 @@ public function getDomainNames() $result = @json_decode(curl_exec($curl), true); if (!isset($result['result'])) { - throw new Exception('Cloudflare Error: '.json_encode($result)); + throw new Exception('API Key not valid'); } static::$zones = array_combine(array_column($result['result'], 'id'), array_column($result['result'], 'name'));