From 57dde3c9b227f2d4273a3243a7965f3b4deda404 Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Tue, 20 Aug 2024 14:04:07 +0200 Subject: [PATCH] fail request on error --- app/Providers/AppServiceProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 6c9d291..c7b8418 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -75,6 +75,7 @@ public function boot(): void ->accept('application/vnd.github.v3+json') ->withUserAgent(config('app.name').' '.config('app.url')) ->withOptions(['http_errors' => true]) + ->throw() ->withMiddleware(function (callable $handler): Closure { return function (RequestInterface $request, array $options) use ($handler): PromiseInterface { $promise = $handler($request, $options);