|
|
@@ -163,14 +163,14 @@ class ErrorHandler extends \yii\base\ErrorHandler
|
|
|
}
|
|
|
if (YII_DEBUG) {
|
|
|
$it['type'] = get_class($exception);
|
|
|
- if (!$exception instanceof UserException) {
|
|
|
- $it['file'] = $exception->getFile();
|
|
|
- $it['line'] = $exception->getLine();
|
|
|
- $it['stack-trace'] = explode("\n", $exception->getTraceAsString());
|
|
|
+// if (!$exception instanceof UserException) {
|
|
|
+ $it['file'] = $exception->getFile() ?? '';
|
|
|
+ $it['line'] = $exception->getLine() ?? '';
|
|
|
+ $it['stack-trace'] = explode("\n", $exception->getTraceAsString()) ?? '';
|
|
|
if ($exception instanceof \yii\db\Exception) {
|
|
|
- $it['error-info'] = $exception->errorInfo;
|
|
|
+ $it['error-info'] = $exception->errorInfo ?? '';
|
|
|
}
|
|
|
- }
|
|
|
+// }
|
|
|
}
|
|
|
if (($prev = $exception->getPrevious()) !== null) {
|
|
|
$it['previous'] = $this->convertExceptionToArray($prev);
|