mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't hang request in the event of a spelling backend error
This commit is contained in:
parent
3452a9870e
commit
36ba88297b
1 changed files with 1 additions and 0 deletions
|
@ -12,4 +12,5 @@ module.exports = SpellingController =
|
||||||
request(url: Settings.apis.spelling.url + url, method: req.method, headers: req.headers, json: req.body, timeout:TEN_SECONDS)
|
request(url: Settings.apis.spelling.url + url, method: req.method, headers: req.headers, json: req.body, timeout:TEN_SECONDS)
|
||||||
.on "error", (error) ->
|
.on "error", (error) ->
|
||||||
logger.error err: error, "Spelling API error"
|
logger.error err: error, "Spelling API error"
|
||||||
|
res.status(500).end()
|
||||||
.pipe(res)
|
.pipe(res)
|
||||||
|
|
Loading…
Reference in a new issue