Skip to content

Commit f7b3dcf

Browse files
kmruizCopilot
andauthored
Update src/resources/common/debug.ts
Co-authored-by: Copilot <[email protected]>
1 parent 3e4918a commit f7b3dcf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/resources/common/debug.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ export class DebugResource extends ReactiveResource<
6969
result += `Attempted connecting to Atlas Cluster "${this.current.connectedAtlasCluster.clusterName}" in project with id "${this.current.connectedAtlasCluster.projectId}".\n`;
7070
}
7171

72-
result += `The inferred authentication mechanism is "${this.current.connectionStringAuthType ?? "could-not-infer"}".\n`;
72+
if (this.current.connectionStringAuthType !== undefined) {
73+
result += `The inferred authentication mechanism is "${this.current.connectionStringAuthType}".\n`;
74+
}
7375
result += `<error>${this.current.errorReason}</error>`;
7476
break;
7577
case "connecting":

0 commit comments

Comments
 (0)