Skip to content

Commit 6f827c9

Browse files
authored
Update auth mode error messages (#426)
* update auth mode error message
1 parent c7ba85a commit 6f827c9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/AzureAuth/Commands/Ado/CommandPat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public int OnExecute(ILogger<CommandPat> logger, IPublicClientAuth publicClientA
135135
this.AuthModes ??= env.ReadAuthModeFromEnvOrSetDefault();
136136
if (!this.AuthModes.Any())
137137
{
138-
logger.LogError($"Invalid value specified for environment variable {EnvVars.AuthMode}. Allowed values are: {CommandAad.AuthModeHelperText}");
138+
logger.LogError($"Invalid value specified for environment variable {EnvVars.AuthMode}. Allowed values are: {CommandAad.AuthModeAllowedValues}");
139139
return 1;
140140
}
141141

src/AzureAuth/Commands/Ado/CommandToken.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public int OnExecute(ILogger<CommandToken> logger, IEnv env, ITelemetryService t
102102
this.AuthModes ??= env.ReadAuthModeFromEnvOrSetDefault();
103103
if (!this.AuthModes.Any())
104104
{
105-
logger.LogError($"Invalid value specified for environment variable {EnvVars.AuthMode}. Allowed values are: {CommandAad.AuthModeHelperText}");
105+
logger.LogError($"Invalid value specified for environment variable {EnvVars.AuthMode}. Allowed values are: {CommandAad.AuthModeAllowedValues}");
106106
return 1;
107107
}
108108

src/AzureAuth/Commands/CommandAad.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public bool EvaluateOptions()
286286
this.AuthModes ??= env.ReadAuthModeFromEnvOrSetDefault();
287287
if (!this.AuthModes.Any())
288288
{
289-
this.logger.LogError($"Invalid value specified for environment variable {EnvVars.AuthMode}. Allowed values are: {CommandAad.AuthModeHelperText}");
289+
this.logger.LogError($"Invalid value specified for environment variable {EnvVars.AuthMode}. Allowed values are: {CommandAad.AuthModeAllowedValues}");
290290
return false;
291291
}
292292

0 commit comments

Comments
 (0)