Skip to content

Commit 041921f

Browse files
authored
Update an error message to make the error reporting look cleaner (#277)
1 parent e3b215a commit 041921f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

shell/agents/Microsoft.Azure.Agent/AzureAgent.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ public async Task RefreshChatAsync(IShell shell, bool force)
194194
if (inner is CredentialUnavailableException)
195195
{
196196
host.WriteErrorLine($"Failed to start a chat session: Access token not available.");
197-
host.WriteErrorLine($"The '{Name}' agent depends on the Azure CLI credential to acquire access token. Please run 'az login' from a command-line shell to setup account.");
198-
host.WriteErrorLine("Once you've successfully logged in, please run '/refresh' to start a new conversation");
197+
host.WriteErrorLine($"The '{Name}' agent depends on the Azure CLI credential to acquire access token. Please run 'az login' from a command-line shell to setup account. Once you've successfully logged in, run '/refresh' to start a new conversation.");
199198
return;
200199
}
201200

0 commit comments

Comments
 (0)