cvs: php4 /pear/PEAR/Frontend CLI.php

From: Date: Sun, 07 Apr 2002 16:47:36 +0000
Subject: cvs: php4 /pear/PEAR/Frontend CLI.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3106@lists.php.net to get a copy of this message
ssb Sun Apr 7 12:47:36 2002 EDT Modified files: /php4/pear/PEAR/Frontend CLI.php Log: * added displayError and displayFatalError methods Index: php4/pear/PEAR/Frontend/CLI.php diff -u php4/pear/PEAR/Frontend/CLI.php:1.8 php4/pear/PEAR/Frontend/CLI.php:1.9 --- php4/pear/PEAR/Frontend/CLI.php:1.8 Tue Apr 2 04:15:51 2002 +++ php4/pear/PEAR/Frontend/CLI.php Sun Apr 7 12:47:36 2002 @@ -16,7 +16,7 @@ | Author: Stig Sæther Bakken <ssb@fast.no> | +----------------------------------------------------------------------+ - $Id: CLI.php,v 1.8 2002/04/02 09:15:51 ssb Exp $ + $Id: CLI.php,v 1.9 2002/04/07 16:47:36 ssb Exp $ */ require_once "PEAR.php"; @@ -73,6 +73,23 @@ function displayLine($text) { print "| $text\n"; + } + + // }}} + // {{{ displayError(eobj) + + function displayError($eobj) + { + return $this->displayLine($eobj->getMessage()); + } + + // }}} + // {{{ displayFatalError(eobj) + + function displayFatalError($eobj) + { + $this->displayError($eobj); + exit(1); } // }}}

« previous php.pear.cvs (#3106) next »