mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
provide a /oops-internal endpoint for testing uncaughtExceptions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user