diff --git a/api/components/ErrorHandler.php b/api/components/ErrorHandler.php index f77b870..f8a1ac9 100644 --- a/api/components/ErrorHandler.php +++ b/api/components/ErrorHandler.php @@ -8,7 +8,7 @@ class ErrorHandler extends \yii\web\ErrorHandler { public function convertExceptionToArray($exception) { if ($exception instanceof AuthserverException) { return [ - 'error' => $this->getExceptionName($exception), + 'error' => $exception->getName(), 'errorMessage' => $exception->getMessage(), ]; }