summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/it.class b/it.class
index 9ff426e..4f6514a 100644
--- a/it.class
+++ b/it.class
@@ -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);
}