From 147c84f487152fda112db8d547efc71d502ed820 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 31 Aug 2016 13:35:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=D0=BE=20=D0=BB?= =?UTF-8?q?=D0=B8=D1=88=D0=BD=D0=B5=D0=B5=20=D0=B7=D0=B2=D0=B5=D0=BD=D0=BE?= =?UTF-8?q?=20=D0=B2=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=D0=B5=20=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=20=D0=B8=D1=81=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/components/ErrorHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), ]; }