Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
fix(error): join args with a space on Command failed error
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jun 4, 2017
1 parent 857a221 commit c2f6f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion child.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function spawn (cmd, args, opts) {
child.on('error', cb)
child.on('close', code => {
if (code) {
const err = new Error(`Command failed: ${cmd} ${args}`)
const err = new Error(`Command failed: ${cmd} ${args.join(' ')}`)
err.exitCode = code
cb(err)
} else {
Expand Down

0 comments on commit c2f6f18

Please sign in to comment.