summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)