Skip to content

Commit 80e081c

Browse files
committed
fix: logging
Before: 2023-11-26 15:25:27 [ERROR]: Error Activating AWS Toolkit: Connection is not a valid type: [object Object] After: 2023-11-26 16:46:20 [ERROR]: Error Activating AWS Toolkit: Connection "profile:default" is not a valid type: iam
1 parent dfb65a8 commit 80e081c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codewhisperer/util/authUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ export async function getChatAuthState(cwAuth = AuthUtil.instance): Promise<Feat
377377
return buildFeatureAuthState(AuthStates.disconnected)
378378
}
379379
if (!isSsoConnection(currentConnection)) {
380-
throw new ToolkitError(`Connection is not a valid type: ${currentConnection}`)
380+
throw new ToolkitError(`Connection "${currentConnection.id}" is not a valid type: ${currentConnection.type}`)
381381
}
382382

383383
// The state of the connection may not have been properly validated

0 commit comments

Comments
 (0)