改进debug状态时console下异常的输出

This commit is contained in:
yunwuxin
2016-06-15 14:59:31 +08:00
parent 30764fe702
commit 116a289cf7

View File

@@ -86,6 +86,9 @@ class Handle
*/
public function renderForConsole(Output $output, Exception $e)
{
if (APP_DEBUG) {
$output->setVerbosity(Output::VERBOSITY_DEBUG);
}
(new Console)->renderException($e, $output);
}