Merge pull request #1007 from Undergrid/Issue_1004

Issue 1004
This commit is contained in:
advplyr 2022-09-24 17:36:42 -05:00 committed by GitHub
commit f851cde1f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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