Skip to content

Commit

Permalink
Merge pull request #179 from Astrotomic/dev
Browse files Browse the repository at this point in the history
fail request on error
  • Loading branch information
Gummibeer authored Aug 20, 2024
2 parents fe3598e + 57dde3c commit 956f53c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 956f53c

Please sign in to comment.