display errors in plain-text for CLI users
This commit is contained in:
parent
9edbf0e343
commit
922409e323
@ -66,6 +66,12 @@
|
||||
global $board, $mod, $config;
|
||||
|
||||
if(function_exists('sql_close')) sql_close();
|
||||
|
||||
if(defined('STDIN')) {
|
||||
// Running from CLI
|
||||
die('Error: ' . $message);
|
||||
}
|
||||
|
||||
die(Element('page.html', Array(
|
||||
'config'=>$config,
|
||||
'title'=>'Error',
|
||||
|
Loading…
Reference in New Issue
Block a user