mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 03:52:15 +09:00
Do not display HTML error page if the current SAPI is CLI
This commit is contained in:
parent
c23a1949cc
commit
a33b961c62
1 changed files with 6 additions and 0 deletions
|
|
@ -397,6 +397,12 @@ class Debug
|
||||||
*/
|
*/
|
||||||
public static function displayErrorScreen($message)
|
public static function displayErrorScreen($message)
|
||||||
{
|
{
|
||||||
|
// Do not display error screen in CLI.
|
||||||
|
if (php_sapi_name() === 'cli')
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Disable output buffering.
|
// Disable output buffering.
|
||||||
while (ob_get_level())
|
while (ob_get_level())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue