From 70081408e097352ce060984a56d2c977c9ae1e74 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Mon, 16 Jun 2025 21:44:44 +0200 Subject: [PATCH] chore: print errors separetly --- src/api.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api.ts b/src/api.ts index 4e9a417..3f3d841 100644 --- a/src/api.ts +++ b/src/api.ts @@ -326,11 +326,11 @@ export async function resolveVitestAPI(workspaceConfigs: VitestPackage[], config } if (!apis.length) { - throw new AggregateError(errors, 'The extension could not load some configs.') + log.error('There were errors during config load.', errors) + throw new Error('The extension could not load any config.') } else if (errors.length) { - log.error('There were errors during config load.') - log.error(errors) + log.error('There were errors during config load.', errors) showVitestError('The extension could not load some configs') } -- 2.51.2