Skip to content

Commit bc7d7ef

Browse files
committed
adding console logs to show rc
1 parent 82200bd commit bc7d7ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/external-services/external-service-provider.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,11 @@ export class ExternalServiceProvider implements LLMServiceProvider, TelemetrySer
147147
return new LiveOrgConnectionService(workspaceContext);
148148

149149
} catch (err) {
150-
this.logger.error(`Could not establish Org Connection service due to unexpected error:\n${getErrorMessageWithStack(err)}`);
151-
throw err;
150+
const msg = `Could not establish Org Connection service due to unexpected error:\n${getErrorMessageWithStack(err)}`;
151+
this.logger.error(msg);
152+
// Log to stderr so CI (e.g. GHA) shows the reason when activation fails or falls back to NoOp.
153+
console.error(`[sfdx-code-analyzer-vscode] ${msg}`);
154+
return new NoOpOrgConnectionService();
152155
}
153156
}
154157

0 commit comments

Comments
 (0)