diff options
| author | Stig Bakken <ssb@php.net> | 2002-04-07 16:47:36 +0000 |
|---|---|---|
| committer | Stig Bakken <ssb@php.net> | 2002-04-07 16:47:36 +0000 |
| commit | 6718d569bd85568a3286267310759052a8cd7f84 (patch) | |
| tree | 91725575d6a432a995b79da5fabc124a40d5a6a2 /pear/PEAR/Frontend/CLI.php | |
| parent | 49b11adf7cd69f1956eeb0378ec061b6cec4f96f (diff) | |
| download | php-git-6718d569bd85568a3286267310759052a8cd7f84.tar.gz | |
* added displayError and displayFatalError methods
Diffstat (limited to 'pear/PEAR/Frontend/CLI.php')
| -rw-r--r-- | pear/PEAR/Frontend/CLI.php | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ -76,6 +76,23 @@ class PEAR_Frontend_CLI extends PEAR } // }}} + // {{{ displayError(eobj) + + function displayError($eobj) + { + return $this->displayLine($eobj->getMessage()); + } + + // }}} + // {{{ displayFatalError(eobj) + + function displayFatalError($eobj) + { + $this->displayError($eobj); + exit(1); + } + + // }}} // {{{ displayHeading(title) function displayHeading($title) |
