0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Fixed editor error handling

refs adeef741fb

- there's no local `error()` action, we need to use `this.send()` so the route-level error handler is triggered
This commit is contained in:
Kevin Ansfield 2022-05-04 16:30:52 +01:00
parent bb4b3a7eec
commit 6a28de85b8

View file

@ -546,7 +546,7 @@ export default class EditorController extends Controller {
// re-throw if we have a general server error // re-throw if we have a general server error
if (error && !isInvalidError(error)) { if (error && !isInvalidError(error)) {
this.error(error); this.send('error', error);
return; return;
} }