0
Fork 0
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:
Hannah Wolfe 2013-10-22 14:55:17 -07:00
commit 3185078238

View file

@ -191,7 +191,7 @@ errors = {
}
errors.renderErrorPage(500, err, req, res, next);
} else {
res.send(500, err);
res.send(err.status || 500, err);
}
}
};