diff options
-rw-r--r-- | it.class | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -201,7 +201,7 @@ static function error($p = array()) return; } - $toscreen = getenv('NOERRORMAILS') || ini_get('display_errors') || (defined("STDOUT") && posix_isatty(STDOUT)) || EDC('astwin') || EDC('asdevel'); + $toscreen = getenv('NOERRORMAILS') || ini_get('display_errors') || (defined("STDOUT") && posix_isatty(STDERR)) || EDC('astwin') || EDC('asdevel'); if ($toscreen && !it::is_live()) $GLOBALS['debug_noredir'] = 1; @@ -318,9 +318,9 @@ static function fatal($p) /** * Print message to stderr and exit with error code */ -static function bail($message = "Bailed.\n") +static function bail($message = "Bailed.") { - fputs(STDERR, $message); + fputs(STDERR, rtrim($message, "\n") . "\n"); exit(1); } |