mirror of
https://github.com/sasjs/server.git
synced 2026-07-24 13:42:14 +00:00
chore: bug fixes for session crash details + return code
This commit is contained in:
@@ -74,11 +74,13 @@ ${program}`
|
||||
await moveFile(codePath + '.bkp', codePath)
|
||||
|
||||
// we now need to poll the session array
|
||||
while (!session.completed || !session.crashed) {
|
||||
while (!session.completed) {
|
||||
await delay(50)
|
||||
}
|
||||
|
||||
const log = (await fileExists(logPath)) ? await readFile(logPath) : ''
|
||||
const log =
|
||||
((await fileExists(logPath)) ? await readFile(logPath) : '') +
|
||||
session.crashed
|
||||
const webout = (await fileExists(weboutPath))
|
||||
? await readFile(weboutPath)
|
||||
: ''
|
||||
|
||||
Reference in New Issue
Block a user