Skip to content

Commit 1967d72

Browse files
committed
fix(error): throw an aggregate error rather than a simple error
1 parent 8f88e9d commit 1967d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/verify-auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default async function (npmrc, pkg, context) {
3232
const {stdout} = await publishDryRunResult;
3333
stdout.forEach((line) => {
3434
if (line.includes("warn This command requires you to be logged in to https://registry.npmjs.org/")) {
35-
throw new Error('no auth context');
35+
throw new AggregateError([new Error('no auth context')]);
3636
}
3737
})
3838
// } catch {

0 commit comments

Comments
 (0)