1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

FixCI/CD failures

This commit is contained in:
Matej Bačo 2024-01-26 12:22:06 +00:00
parent c0ae2e6549
commit ecb48b389e

View file

@ -244,8 +244,8 @@ class Exception extends \Exception
{
$this->errors = Config::getParam('errors');
$this->type = $type;
$this->code = $this->errors[$type]['code'] ?? $code;
$this->message = $this->errors[$type]['description'] ?? $message;
$this->code = $code ?? $this->errors[$type]['code'];
$this->message = $message ?? $this->errors[$type]['description'];
$this->publish = $this->errors[$type]['publish'] ?? ($this->code >= 500);