mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
for spelling attach error handler first
This commit is contained in:
parent
f61d97a4f6
commit
79a694b5c8
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ module.exports = SpellingController =
|
|||
url = "/user/#{req.session.user._id}#{url}"
|
||||
req.headers["Host"] = Settings.apis.spelling.host
|
||||
getReq = request(url: Settings.apis.spelling.url + url, method: req.method, headers: req.headers, json: req.body)
|
||||
getReq.pipe(res)
|
||||
getReq.on "error", (error) ->
|
||||
logger.error err: error, "Spelling API error"
|
||||
res.sendStatus 500
|
||||
getReq.pipe(res)
|
||||
|
|
Loading…
Reference in a new issue