Фикс сообщений в исключениях

This commit is contained in:
Anthony Axenov 2020-06-14 13:43:32 +08:00
parent e1fb74ac01
commit aab68646e6

View File

@ -33,6 +33,7 @@ class AtolException extends Exception
*/ */
public function __construct($message = "", $code = 0, Throwable $previous = null) public function __construct($message = "", $code = 0, Throwable $previous = null)
{ {
$message = $message ?: $this->message;
if ($this->getFfdTags()) { if ($this->getFfdTags()) {
$message .= ' [FFD tags: '.implode(', ', $this->getFfdTags()).']'; $message .= ' [FFD tags: '.implode(', ', $this->getFfdTags()).']';
} }