Skip to content

Commit 7008140

Browse files
committed
chore: print errors separetly
1 parent d908e7e commit 7008140

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,11 @@ export async function resolveVitestAPI(workspaceConfigs: VitestPackage[], config
326326
}
327327

328328
if (!apis.length) {
329-
throw new AggregateError(errors, 'The extension could not load some configs.')
329+
log.error('There were errors during config load.', errors)
330+
throw new Error('The extension could not load any config.')
330331
}
331332
else if (errors.length) {
332-
log.error('There were errors during config load.')
333-
log.error(errors)
333+
log.error('There were errors during config load.', errors)
334334
showVitestError('The extension could not load some configs')
335335
}
336336

0 commit comments

Comments
 (0)