mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
respect the status code on the error if it exists
This commit is contained in:
parent
c37447a2d6
commit
b8335b6b64
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ app.get "/health_check", (req, res)->
|
|||
|
||||
app.use (error, req, res, next) ->
|
||||
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) ->
|
||||
logger.log "CLSI listening on #{host}:#{port}"
|
||||
|
|
Loading…
Reference in a new issue