From: Stig Bakken Date: Sun, 7 Apr 2002 16:47:36 +0000 (+0000) Subject: * added displayError and displayFatalError methods X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~820 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6718d569bd85568a3286267310759052a8cd7f84;p=php * added displayError and displayFatalError methods --- diff --git a/pear/PEAR/Frontend/CLI.php b/pear/PEAR/Frontend/CLI.php index 3a47a619ac..193c2749ff 100644 --- a/pear/PEAR/Frontend/CLI.php +++ b/pear/PEAR/Frontend/CLI.php @@ -75,6 +75,23 @@ class PEAR_Frontend_CLI extends PEAR print "| $text\n"; } + // }}} + // {{{ displayError(eobj) + + function displayError($eobj) + { + return $this->displayLine($eobj->getMessage()); + } + + // }}} + // {{{ displayFatalError(eobj) + + function displayFatalError($eobj) + { + $this->displayError($eobj); + exit(1); + } + // }}} // {{{ displayHeading(title)