Removes writing to the ob if not expected #9

Merged
neintonine merged 1 commit from develop into master 2024-11-07 21:25:56 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 6b4cd7a612 - Show all commits

View file

@ -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 ]);
}

View file

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