Skip to content

Commit

Permalink
rollbar#74: detect api errors based on the status code of the response
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturMoczulski committed Dec 17, 2018
1 parent 32bf2d7 commit 8d88d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RollbarServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function boot()
return;
}

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

0 comments on commit 8d88d02

Please sign in to comment.