Skip to content

Commit f9c0af5

Browse files
committed
Don't throw during fix command for API server errors
1 parent 9c77519 commit f9c0af5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/commands/fix/npm-fix.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export async function npmFix(
5454
existing: true,
5555
unfixable: false,
5656
upgradable: false
57-
}
57+
},
58+
nothrow: true
5859
})
5960

6061
const infoByPkg = getCveInfoByAlertsMap(alertsMap)

src/commands/fix/pnpm-fix.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export async function pnpmFix(
4949
existing: true,
5050
unfixable: false,
5151
upgradable: false
52-
}
52+
},
53+
nothrow: true
5354
})
5455

5556
const infoByPkg = getCveInfoByAlertsMap(alertsMap)

0 commit comments

Comments
 (0)