Fix catching cipher exception
This commit is contained in:
parent
acde755e43
commit
93a7bae30d
|
|
@ -59,7 +59,7 @@ class AppServiceProvider extends ServiceProvider
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
try {
|
try {
|
||||||
$this->app->make('cipher');
|
$this->app->make('cipher');
|
||||||
} catch (ReflectionException $e) {
|
} catch (\Illuminate\Contracts\Container\BindingResolutionException $e) {
|
||||||
throw new PrettyPageException(trans('errors.cipher.unsupported', ['cipher' => config('secure.cipher')]));
|
throw new PrettyPageException(trans('errors.cipher.unsupported', ['cipher' => config('secure.cipher')]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
- Add missing l10n text.
|
- Add missing l10n text.
|
||||||
- Fixed that model was reset after resetting skin previewing.
|
- 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 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
|
## Removed
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
- 补充部分缺失的语言文本
|
- 补充部分缺失的语言文本
|
||||||
- 重置皮肤预览后,皮肤模型也被重置的问题
|
- 重置皮肤预览后,皮肤模型也被重置的问题
|
||||||
- AJAX 出现错误时,堆栈中不显示来自插件的部分
|
- AJAX 出现错误时,堆栈中不显示来自插件的部分
|
||||||
|
- 当使用了不支持的密码加密算法时,错误页面没有正确显示的问题
|
||||||
|
|
||||||
## 移除
|
## 移除
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user