mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 08:41:01 +00:00
provide a /oops-internal endpoint for testing uncaughtExceptions
This commit is contained in:
parent
fc11574698
commit
f0b4f1238b
1 changed files with 6 additions and 0 deletions
|
@ -213,6 +213,12 @@ app.get('/oops', function (req, res, next) {
|
|||
return res.send('error\n')
|
||||
})
|
||||
|
||||
app.get('/oops-internal', function (req, res, next) {
|
||||
setTimeout(function () {
|
||||
throw new Error('Test error')
|
||||
}, 1)
|
||||
})
|
||||
|
||||
app.get('/status', (req, res, next) => res.send('CLSI is alive\n'))
|
||||
|
||||
Settings.processTooOld = false
|
||||
|
|
Loading…
Reference in a new issue