mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36: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);
|
errors.renderErrorPage(500, err, req, res, next);
|
||||||
} else {
|
} else {
|
||||||
res.send(500, err);
|
res.send(err.status || 500, err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue