Skip to content

Commit

Permalink
Don't let Whoops exit the process
Browse files Browse the repository at this point in the history
  • Loading branch information
franzliedke committed Apr 18, 2016
1 parent 4a5ae20 commit ec464b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/WhoopsRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public static function handle($error, ServerRequestInterface $request)
$method = Run::EXCEPTION_HANDLER;

$whoops = self::getWhoopsInstance($request);

// Output is managed by the middleware pipeline
$whoops->allowQuit(false);

ob_start();
$whoops->$method($error);
$response = ob_get_clean();
Expand Down

0 comments on commit ec464b2

Please sign in to comment.