summaryrefslogtreecommitdiff
path: root/pear/PEAR/Frontend/CLI.php
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-04-07 16:47:36 +0000
committerStig Bakken <ssb@php.net>2002-04-07 16:47:36 +0000
commit6718d569bd85568a3286267310759052a8cd7f84 (patch)
tree91725575d6a432a995b79da5fabc124a40d5a6a2 /pear/PEAR/Frontend/CLI.php
parent49b11adf7cd69f1956eeb0378ec061b6cec4f96f (diff)
downloadphp-git-6718d569bd85568a3286267310759052a8cd7f84.tar.gz
* added displayError and displayFatalError methods
Diffstat (limited to 'pear/PEAR/Frontend/CLI.php')
-rw-r--r--pear/PEAR/Frontend/CLI.php17
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)