From: Tomas V.V.Cox Date: Mon, 21 Jun 2004 04:36:17 +0000 (+0000) Subject: More output magic on nested exceptions X-Git-Tag: php-5.0.0~156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fb65c4c29d87e4a448aaf4e7d36069be0bedc2e;p=php More output magic on nested exceptions --- diff --git a/pear/PEAR/Exception.php b/pear/PEAR/Exception.php index be6d573201..8322fd034a 100644 --- a/pear/PEAR/Exception.php +++ b/pear/PEAR/Exception.php @@ -176,9 +176,10 @@ class PEAR_Exception extends Exception private function _getCauseMessage() { - $msg = ' ' . $this->_method . " at {$this->file} ({$this->line})\n"; + $msg = " #{$this->_method} at {$this->file} ({$this->line})\n" . + " {$this->message}\n"; if ($this->cause instanceof Exception) { - return $msg . $this->cause->_getCauseMessage(); + return $this->cause->_getCauseMessage() . $msg; } return $msg; }