mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Improve handling of exceptions which should trigger retrying an operation
This commit is contained in:
@@ -24,7 +24,7 @@ function startMainApp(env) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const task = spawn('node', [initPath], {
|
||||
stdio: ['inherit', 'pipe', 'inherit'],
|
||||
env: { ...process.env, PORT: 0 /* random port */ }
|
||||
env: { ...process.env, PORT: 0 /* random port */, ...env }
|
||||
})
|
||||
|
||||
task.on('exit', () => reject(new Error('task terminated too early')))
|
||||
|
||||
Reference in New Issue
Block a user