openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

commit 74e65cb35c350823e1d250c9a2c47ffeb3f6f442
parent a75b89aab4f91df840fbb9ce1b988bdabc517d9c
Author: Jan Dankert <dev@jandankert.de>
Date:   Fri, 23 Oct 2020 07:44:23 +0200

Fix: UIException must consider the previous exception.

Diffstat:
Mmodules/util/exception/UIException.class.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/util/exception/UIException.class.php b/modules/util/exception/UIException.class.php @@ -20,8 +20,8 @@ class UIException extends Exception // maßgeschneiderte Stringdarstellung des Objektes public function __toString() { - return __CLASS__ . ": " . $this->key . " [{$this->code}]: '{$this->message}' in {$this->file}({$this->line})\n" - . "{$this->getTraceAsString()}\n"; + return __CLASS__ . ": " . $this->key . ": '{$this->message}' in {$this->file}({$this->line})\n" + . "{$this->getTraceAsString()}\n".($this->getPrevious()?'Caused by: '.$this->getPrevious()->__toString():''); } }