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:
parent
bb4b3a7eec
commit
6a28de85b8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue