Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
非debug模式下默认不再显示异常信息
Browse files Browse the repository at this point in the history
  • Loading branch information
su committed Jul 20, 2018
1 parent 8827f84 commit b0cd4af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kernel/service/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ public function renderException(ExceptionEvent $event)
$content = 'An internal server error occurred.';
}

\Lying::$maker->response->clear()->setStatusCode($httpCode)->setContent($content)->send();
\Lying::$maker->response->clear()
->setStatusCode($httpCode)
->setContent($content)
->send();
}
}

0 comments on commit b0cd4af

Please sign in to comment.