Fix catching cipher exception

This commit is contained in:
Pig Fang 2019-09-14 12:28:22 +08:00
parent acde755e43
commit 93a7bae30d
3 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class AppServiceProvider extends ServiceProvider
// @codeCoverageIgnoreStart
try {
$this->app->make('cipher');
} catch (ReflectionException $e) {
} catch (\Illuminate\Contracts\Container\BindingResolutionException $e) {
throw new PrettyPageException(trans('errors.cipher.unsupported', ['cipher' => config('secure.cipher')]));
}

View File

@ -24,6 +24,7 @@
- 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.
- Fixed that error page doesn't display when using an unsupported hash algorithm.
## Removed

View File

@ -24,6 +24,7 @@
- 补充部分缺失的语言文本
- 重置皮肤预览后,皮肤模型也被重置的问题
- AJAX 出现错误时,堆栈中不显示来自插件的部分
- 当使用了不支持的密码加密算法时,错误页面没有正确显示的问题
## 移除