Skip to content

Commit 20efadd

Browse files
authored
Add back-ticks around the WWW-Authenticate header name in exception (#5717)
message.
1 parent f80f2d7 commit 20efadd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdk/identity/azure-identity/src/managed_identity_source.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Azure::Core::Credentials::AccessToken AzureArcManagedIdentitySource::GetToken(
406406
if (authHeader == headers.end())
407407
{
408408
throw AuthenticationException(
409-
"Did not receive expected WWW-Authenticate header "
409+
"Did not receive expected 'WWW-Authenticate' header "
410410
"in the response from Azure Arc Managed Identity Endpoint.");
411411
}
412412

@@ -417,7 +417,7 @@ Azure::Core::Credentials::AccessToken AzureArcManagedIdentitySource::GetToken(
417417
|| challenge.find(ChallengeValueSeparator, eq + 1) != std::string::npos)
418418
{
419419
throw AuthenticationException(
420-
"The WWW-Authenticate header in the response from Azure Arc "
420+
"The 'WWW-Authenticate' header in the response from Azure Arc "
421421
"Managed Identity Endpoint did not match the expected format.");
422422
}
423423

0 commit comments

Comments
 (0)