From f12316f2e872fc25185cc8c4c82667f95ba3d80f Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 24 Jun 2014 10:18:57 +0200 Subject: [PATCH] file and line information missing from error array representation --- framework/web/ErrorHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/web/ErrorHandler.php b/framework/web/ErrorHandler.php index c5456b0db6..0fe6cef600 100644 --- a/framework/web/ErrorHandler.php +++ b/framework/web/ErrorHandler.php @@ -127,6 +127,8 @@ class ErrorHandler extends \yii\base\ErrorHandler $array['status'] = $exception->statusCode; } if (YII_DEBUG) { + $array['file'] = $exception->getFile(); + $array['line'] = $exception->getLine(); $array['stack-trace'] = explode("\n", $exception->getTraceAsString()); if ($exception instanceof \yii\db\Exception) { $array['error-info'] = $exception->errorInfo;