build: improve error output

This commit is contained in:
vsavkin 2017-10-04 11:16:01 -04:00 committed by Victor Savkin
parent c0097c2c0a
commit bb19c2d207

View File

@ -27,7 +27,7 @@ export function runCLI(command?: string, opts = {
if (opts.silenceError) {
return e.stdout.toString();
} else {
console.log(e);
console.log(e.stdout.toString(), e.stderr.toString());
throw e;
}
}