chore: bug fixes for session crash details + return code

This commit is contained in:
Saad Jutt
2021-11-15 21:30:12 +05:00
parent 9ee7951816
commit f030aa1516
6 changed files with 15 additions and 11 deletions
+4 -2
View File
@@ -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)
: ''