Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function runAsyncBase(cmd, args, options = {}) {
if (ignoreFailure) {
return reject(new Error(IGNORE));
}
const err = new Error(`${cmd} failed: ${code}`);
const err = new Error(`${cmd} ${args} failed: ${code}`);
err.code = code;
err.messageOnly = true;
return reject(err);
Expand Down Expand Up @@ -57,7 +57,8 @@ exports.runSync = function(cmd, args, options) {
if (child.error) {
throw child.error;
} else if (child.status !== 0) {
throw new Error(child.stderr.toString());
throw new Error(`${cmd} ${args} failed with stderr: ` +
child.stderr.toString());
} else {
return child.stdout.toString();
}
Expand Down