Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cp.on('close', function(code) {
if (code !== 0) {
return reject(new Error(cmd + ' failed.'));
}
logger.clear();
return resolve();
});
});