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('exit', code => { exitCode = code })
proc.on('error', err => reject(err)) proc.on('error', err => reject(err))
proc.on('close', () => { proc.on('close', () => {
try { try {
let result = JSON.parse(probeData.join('')) let result = JSON.parse(probeData.join(''))
resolve(result); resolve(result);
} catch (err) { } catch (err) {
reject(err); reject(err);
} }
}) })
}) })
} }