mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed hidden validation error during frontend reload
refs https://github.com/TryGhost/Toolbox/issues/151
refs cbec6aa49e
- Without the await the try/catch block does not catch a pottential validation error straight away, which leads to a 500 error instead of a validation error being returned. The regression was introduced during the refactor (part of referenced commit).
This commit is contained in:
parent
5aa08acd33
commit
3150c87935
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class RouteSettings {
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
bridge.reloadFrontend();
|
await bridge.reloadFrontend();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return bringBackValidRoutes()
|
return bringBackValidRoutes()
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue