diff --git a/application/common/models/User.php b/application/common/models/User.php index fcd18bcf..d851407e 100644 --- a/application/common/models/User.php +++ b/application/common/models/User.php @@ -697,7 +697,7 @@ private function saveOrError(string $msg, int $code = null): void \Yii::error([ 'action' => $msg, 'status' => 'error', - 'error' => $this->getFirstErrors(), + 'error' => json_encode($this->getFirstErrors()), ]); if ($code !== null) { throw new \Exception($msg, $code);