This commit is contained in:
Nick Thomson 2022-09-24 22:51:17 +01:00
parent 022c506eda
commit dd0d2e9f55

View File

@ -21,13 +21,13 @@ module.exports = (function () {
proc.on('exit', code => { exitCode = code })
proc.on('error', err => reject(err))
proc.on('close', () => {
try {
let result = JSON.parse(probeData.join(''))
resolve(result);
} catch (err) {
reject(err);
}
})
try {
let result = JSON.parse(probeData.join(''))
resolve(result);
} catch (err) {
reject(err);
}
})
})
}