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
7 changes: 7 additions & 0 deletions packages/@aws-cdk-testing/cli-integ/lib/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ export async function shell(command: string[], options: ShellOptions = {}): Prom

if (code === 0 || options.allowErrExit) {
resolve(out);
} else if (code === 127) {
logAndReject(new Error(
`'${command.join(' ')}' exited with error code 127. ` +
'An executable invoked by this command ' +
'was not found on PATH when it ran. This points to a missing or ' +
`unavailable executable, not to a failure within '${command[0]}' itself.`,
));
} else {
logAndReject(new Error(`'${command.join(' ')}' exited with error code ${code}.`));
}
Expand Down
Loading