mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Merge pull request #1204 from Gotvitch/error-code
Keep the status code generate by connect in case of error.
This commit is contained in:
commit
3185078238
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ errors = {
|
|||
}
|
||||
errors.renderErrorPage(500, err, req, res, next);
|
||||
} else {
|
||||
res.send(500, err);
|
||||
res.send(err.status || 500, err);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue