mirror of
https://github.com/filp/whoops.git
synced 2026-09-25 14:17:31 +00:00
Move output handling back up to Whoops\Run
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Whoops\Handler;
|
||||
use Whoops\Handler\Handler;
|
||||
|
||||
/**
|
||||
* Catches an exception and converts it to a JSON
|
||||
* Catches an exception and converts it to a JSON
|
||||
* response. Additionally can also return exception
|
||||
* frames for consumption by an API.
|
||||
*/
|
||||
@@ -71,9 +71,6 @@ class JsonResponseHandler extends Handler
|
||||
return Handler::DONE;
|
||||
}
|
||||
|
||||
// Remove any previous output
|
||||
ob_get_level() and ob_end_clean();
|
||||
|
||||
$exception = $this->getException();
|
||||
|
||||
$response = array(
|
||||
@@ -84,7 +81,7 @@ class JsonResponseHandler extends Handler
|
||||
'line' => $exception->getLine()
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
if($this->addTraceToOutput()) {
|
||||
$inspector = $this->getInspector();
|
||||
$frames = $inspector->getFrames();
|
||||
|
||||
Reference in New Issue
Block a user