Show error stack from plugins
This commit is contained in:
parent
15c3c0423a
commit
3d3e488443
@ -4,6 +4,7 @@ namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
@ -38,7 +39,8 @@ class Handler extends ExceptionHandler
|
||||
return $trace;
|
||||
})
|
||||
->filter(function ($trace) {
|
||||
return \Illuminate\Support\Str::startsWith($trace['file'], 'app');
|
||||
return Str::startsWith($trace['file'], 'app') ||
|
||||
Str::contains($trace['file'], resolve('plugins')->getPluginsDirs()->all());
|
||||
})
|
||||
->values(),
|
||||
];
|
||||
|
@ -19,6 +19,7 @@
|
||||
- Some fields at administration panel shouldn't be sortable.
|
||||
- Add missing l10n text.
|
||||
- Fixed that model was reset after resetting skin previewing.
|
||||
- Fixed that error stack doesn't show paths from plugins when AJAX has an error.
|
||||
|
||||
## Removed
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
- 管理面板的列表中某些字段不应是可排序的
|
||||
- 补充部分缺失的语言文本
|
||||
- 重置皮肤预览后,皮肤模型也被重置的问题
|
||||
- AJAX 出现错误时,堆栈中不显示来自插件的部分
|
||||
|
||||
## 移除
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user