Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
ehmicky and sindresorhus committed Jun 11, 2019
1 parent 40b59b6 commit 057e123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -242,7 +242,7 @@ function isSigterm(signal) {

function getForceKillAfterTimeout({forceKillAfter = DEFAULT_FORCE_KILL_TIMEOUT}) {
if (!Number.isInteger(forceKillAfter) || forceKillAfter < 0) {
throw new TypeError(`Option 'forceKillAfter' ${forceKillAfter} should be a positive integer`);
throw new TypeError(`Expected the \`forceKillAfter\` option to be a non-negative integer, got \`${forceKillAfter}\` (${typeof forceKillAfter})`);
}

return forceKillAfter;
Expand Down

0 comments on commit 057e123

Please sign in to comment.