Comparing version 1.1.4 to 1.1.5
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/Kikobeats/tinyspawn", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -22,3 +22,2 @@ 'use strict' | ||
childProcess = spawn(cmd, args, opts) | ||
const stdout = eos(childProcess, 'stdout') | ||
@@ -33,7 +32,9 @@ const stderr = eos(childProcess, 'stderr') | ||
if (code === 0) return resolve(childProcess) | ||
let command = `The command spawned as:${EOL}${EOL}` | ||
command += ` ${cmd} ${args.join(' ')}${EOL}${EOL}` | ||
command += `exited with \`{ code: ${code} }\` and the following trace:${EOL}${EOL}` | ||
command += String(stderr).split(EOL).map(line => ` ${line}`).join(EOL) | ||
const error = new Error(command) | ||
const command = `${cmd} ${args.join(' ')}` | ||
let message = `The command spawned as:${EOL}${EOL}` | ||
message += ` ${command}${EOL}${EOL}` | ||
message += `exited with \`{ code: ${code} }\` and the following trace:${EOL}${EOL}` | ||
message += String(stderr).split(EOL).map(line => ` ${line}`).join(EOL) | ||
const error = new Error(message) | ||
error.command = command | ||
error.name = 'ChildProcessError' | ||
@@ -40,0 +41,0 @@ Object.keys(childProcess).forEach(key => { error[key] = childProcess[key] }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10498
41