Do not display HTML error page if the current SAPI is CLI

This commit is contained in:
Kijin Sung 2016-03-16 16:31:27 +09:00
parent c23a1949cc
commit a33b961c62

View file

@ -397,6 +397,12 @@ class Debug
*/
public static function displayErrorScreen($message)
{
// Do not display error screen in CLI.
if (php_sapi_name() === 'cli')
{
return;
}
// Disable output buffering.
while (ob_get_level())
{