Removes writing to the ob if not expected

This commit is contained in:
Michel 2024-11-07 22:24:50 +01:00
parent fefa1a92fd
commit 6b4cd7a612
2 changed files with 2 additions and 2 deletions

View file

@ -38,8 +38,6 @@ final class DiscordAPI
$curl->post(self::OAUTH_TOKEN_URL, $data); $curl->post(self::OAUTH_TOKEN_URL, $data);
if ($curl->error) { if ($curl->error) {
$curl->diagnose();
throw new ExtendedException($curl->errorMessage, [ 'response' => $curl->response, 'data' => $data ]); throw new ExtendedException($curl->errorMessage, [ 'response' => $curl->response, 'data' => $data ]);
} }

View file

@ -21,6 +21,8 @@ final class CrashHandler
) { } ) { }
public function register() : void { public function register() : void {
error_reporting(0);
$handler = $this->getHandler(); $handler = $this->getHandler();
$this->container->addShared(HandlerInterface::class, $handler); $this->container->addShared(HandlerInterface::class, $handler);