mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
parent
14df3e7a69
commit
0f048eeb79
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ errors = {
|
|||
}
|
||||
|
||||
// TODO: Attach node-polyglot
|
||||
res.render((errorView || 'error'), {
|
||||
res.status(code).render((errorView || 'error'), {
|
||||
message: err.message || err,
|
||||
code: code,
|
||||
stack: stack
|
||||
|
@ -186,4 +186,4 @@ _.bindAll(
|
|||
'render500Page'
|
||||
);
|
||||
|
||||
module.exports = errors;
|
||||
module.exports = errors;
|
||||
|
|
Loading…
Add table
Reference in a new issue