diff options
-rw-r--r-- | it.class | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -146,7 +146,17 @@ function error($p = array(), $body = "", $to = "") function fatal($title='', $body='', $to='') { it::error($title, $body, $to); - exit; + exit(1); +} + + +/** + * Print message to stderr and exit with error code + */ +function bail($message = "bailed.\n") +{ + fputs(STDERR, $message); + exit(1); } |