Skip to content

Commit

Permalink
Merge pull request #143 from ArturMoczulski/github-72-set-exception-h…
Browse files Browse the repository at this point in the history
…andler

GitHub Issue #72: status 200 when using set_exception_handler
  • Loading branch information
rokob authored May 4, 2017
2 parents c768bce + 1509e5f commit 0ceb74f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Rollbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ public static function setupExceptionHandling()

public static function exceptionHandler($exception)
{
return self::log(Level::error(), $exception);
self::log(Level::error(), $exception);

restore_exception_handler();
throw $exception;
}

public static function log($level, $toLog, $extra = array())
Expand Down

0 comments on commit 0ceb74f

Please sign in to comment.