diff options
author | Tomas V.V.Cox <cox@php.net> | 2004-06-21 04:36:17 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2004-06-21 04:36:17 +0000 |
commit | 1fb65c4c29d87e4a448aaf4e7d36069be0bedc2e (patch) | |
tree | 251868a094253104b48d509f03d3147b9c155bc4 /pear | |
parent | 24ec6e5a5ce2a03b7ee1a0f812b9c1b3bd9b7660 (diff) | |
download | php-git-1fb65c4c29d87e4a448aaf4e7d36069be0bedc2e.tar.gz |
More output magic on nested exceptions
Diffstat (limited to 'pear')
-rw-r--r-- | pear/PEAR/Exception.php | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |