]> granicus.if.org Git - php/commitdiff
* added displayError and displayFatalError methods
authorStig Bakken <ssb@php.net>
Sun, 7 Apr 2002 16:47:36 +0000 (16:47 +0000)
committerStig Bakken <ssb@php.net>
Sun, 7 Apr 2002 16:47:36 +0000 (16:47 +0000)
pear/PEAR/Frontend/CLI.php

index 3a47a619ac84ed6028141442a9c0c2ead99ad15f..193c2749ff66c7fd952a51a41aa0c9980f2efa78 100644 (file)
@@ -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)