jakejs / jake

JavaScript build tool, similar to Make or Rake. Built to work with Node.js.
http://jakejs.com
Apache License 2.0
1.97k stars 190 forks source link

"/n" is removed from error output #309

Closed welearnednothing closed 8 years ago

welearnednothing commented 8 years ago

It's meant to split on line breaks, this is due to a small typo.

Steps to reproduce

  1. Create the following Jakefile
task('npm', function() {
  var e = jake.exec('npm install kaboom!', {printStdout: true},  function() {
    complete();
  });
}, {async: true});
  1. Run jake npm
  2. See the following output:
jake aborted.
ode" "/usr/local/bin
pm" "install" "kaboom!"
npm ERR! node v5.1.0
(See full trace by running task with --trace)

Expected results

The output should be as follows:

jake aborted.
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "kaboom!"
npm ERR! node v5.1.0
(See full trace by running task with --trace)
mde commented 8 years ago

Excellent!