Skip to content

Commit b27e95e

Browse files
committed
Throw HTTP exceptions
1 parent fc4dc2e commit b27e95e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Drivers/HttpDriver.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ public static function resolveHttpBy(Closure $callback): void
3434
public function process(Request $request): Fluent|false
3535
{
3636
return rescue(fn () => new Fluent(
37-
$this->http()->acceptJson()->get($this->url($request->getIp()))->json()
37+
$this->http()
38+
->throw()
39+
->acceptJson()
40+
->get($this->url($request->getIp()))
41+
->json()
3842
), false, false);
3943
}
4044

0 commit comments

Comments
 (0)