mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03: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
@ -107,7 +107,7 @@ class RouteSettings {
|
||||
};
|
||||
|
||||
try {
|
||||
bridge.reloadFrontend();
|
||||
await bridge.reloadFrontend();
|
||||
} catch (err) {
|
||||
return bringBackValidRoutes()
|
||||
.finally(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user