diff --git a/lib/proxy.js b/lib/proxy.js index 7e3f51e..82eb1db 100644 --- a/lib/proxy.js +++ b/lib/proxy.js @@ -42,8 +42,8 @@ exports.exec = function(command, params) { // Stdout stdout.on('data', data => metadata.push(data)); stdout.on('close', () => { - // Only parse when no error - if (!errors.length) { + // Only parse when with metadata + if (metadata.length) { // Decode data use utf16le let data = Buffer.concat(metadata).toString('utf16le');