diff --git a/src/php/Api/DiscordAPI.php b/src/php/Api/DiscordAPI.php index 6adda8e..3491ec7 100644 --- a/src/php/Api/DiscordAPI.php +++ b/src/php/Api/DiscordAPI.php @@ -38,8 +38,6 @@ final class DiscordAPI $curl->post(self::OAUTH_TOKEN_URL, $data); if ($curl->error) { - $curl->diagnose(); - throw new ExtendedException($curl->errorMessage, [ 'response' => $curl->response, 'data' => $data ]); } diff --git a/src/php/CrashHandler.php b/src/php/CrashHandler.php index e195f64..476a7ca 100644 --- a/src/php/CrashHandler.php +++ b/src/php/CrashHandler.php @@ -21,6 +21,8 @@ final class CrashHandler ) { } public function register() : void { + error_reporting(0); + $handler = $this->getHandler(); $this->container->addShared(HandlerInterface::class, $handler);