respect the status code on the error if it exists

This commit is contained in:
Henry Oswald 2014-11-27 16:11:00 +00:00
parent c37447a2d6
commit b8335b6b64

View file

@ -62,7 +62,7 @@ app.get "/health_check", (req, res)->
app.use (error, req, res, next) -> app.use (error, req, res, next) ->
logger.error err: error, "server error" logger.error err: error, "server error"
res.send 500 res.send err?.statusCode || 500
app.listen port = (Settings.internal?.clsi?.port or 3013), host = (Settings.internal?.clsi?.host or "localhost"), (error) -> app.listen port = (Settings.internal?.clsi?.port or 3013), host = (Settings.internal?.clsi?.host or "localhost"), (error) ->
logger.log "CLSI listening on #{host}:#{port}" logger.log "CLSI listening on #{host}:#{port}"