Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead code related to exit code names #223

Merged
merged 1 commit into from May 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 1 addition & 13 deletions index.js
Expand Up @@ -239,19 +239,7 @@ function getErrorPrefix({timedOut, timeout, signal, exitCodeName, exitCode, isCa
return `was killed with ${signal}`;
}

if (exitCodeName !== undefined && exitCode !== undefined) {
return `failed with exit code ${exitCode} (${exitCodeName})`;
}

if (exitCodeName !== undefined) {
return `failed with exit code ${exitCodeName}`;
}

if (exitCode !== undefined) {
return `failed with exit code ${exitCode}`;
}

return 'failed';
return `failed with exit code ${exitCode} (${exitCodeName})`;
}

function joinCommand(command, args) {
Expand Down