Skip to content

Commit 8d88d02

Browse files
#74: detect api errors based on the status code of the response
1 parent 32bf2d7 commit 8d88d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RollbarServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function boot()
5353
return;
5454
}
5555

56-
if (!$result || !$result->getStatus()) {
56+
if (!$result || $result->getStatus() >= 400) {
5757
\Log::error(
5858
'Unable to send messages to Rollbar API. Produced response: ' .
5959
print_r($result, true)

0 commit comments

Comments
 (0)