Skip to content

Commit

Permalink
chore: fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Dec 2, 2023
1 parent f1274d3 commit 2acc8f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/utils/exit-handler.js
Expand Up @@ -140,10 +140,8 @@ const exitHandler = err => {
// will presumably print its own errors and exit with a proper status
// code if there's a problem. If we got an error with a code=0, then...
// something else went wrong along the way, so maybe an npm problem?
const isShellout = npm.isShellout
const quietShellout = isShellout && typeof err.code === 'number' && err.code
if (quietShellout) {
exitCode = err.code || 0
if (npm.isShellout && typeof err.code === 'number' && err.code) {
exitCode = err.code
suppressLogMessage = true
} else if (typeof err === 'string') {
// XXX: we should stop throwing strings
Expand Down

0 comments on commit 2acc8f5

Please sign in to comment.