From 20efadde4c6eb3b03bfbb06f4d25c47df07188ce Mon Sep 17 00:00:00 2001 From: Ahson Khan Date: Thu, 13 Jun 2024 10:12:05 -0700 Subject: [PATCH] Add back-ticks around the WWW-Authenticate header name in exception (#5717) message. --- sdk/identity/azure-identity/src/managed_identity_source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/identity/azure-identity/src/managed_identity_source.cpp b/sdk/identity/azure-identity/src/managed_identity_source.cpp index aa1b26a44..1b7d6467e 100644 --- a/sdk/identity/azure-identity/src/managed_identity_source.cpp +++ b/sdk/identity/azure-identity/src/managed_identity_source.cpp @@ -406,7 +406,7 @@ Azure::Core::Credentials::AccessToken AzureArcManagedIdentitySource::GetToken( if (authHeader == headers.end()) { throw AuthenticationException( - "Did not receive expected WWW-Authenticate header " + "Did not receive expected 'WWW-Authenticate' header " "in the response from Azure Arc Managed Identity Endpoint."); } @@ -417,7 +417,7 @@ Azure::Core::Credentials::AccessToken AzureArcManagedIdentitySource::GetToken( || challenge.find(ChallengeValueSeparator, eq + 1) != std::string::npos) { throw AuthenticationException( - "The WWW-Authenticate header in the response from Azure Arc " + "The 'WWW-Authenticate' header in the response from Azure Arc " "Managed Identity Endpoint did not match the expected format."); }