3 implementations of Error
dotnet-user-jwts (2)
src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
52public virtual void Error(string message)
src\Tools\Shared\CommandLine\NullReporter.cs (1)
26public void Error(string message)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TestReporter.cs (1)
32public void Error(string message)
22 references to Error
dotnet-user-jwts (22)
Commands\CreateCommand.cs (8)
123reporter.Error(Resources.ProjectOption_ProjectNotFound); 145reporter.Error(Resources.CreateCommand_NoAudience_Error); 156reporter.Error(Resources.FormatCreateCommand_InvalidDate_Error("--not-before")); 167reporter.Error(Resources.FormatCreateCommand_InvalidDate_Error("--expires-on")); 173reporter.Error(Resources.CreateCommand_InvalidExpiresOn_Error); 187reporter.Error(Resources.FormatCreateCommand_InvalidPeriod_Error("--valid-for")); 193reporter.Error(Resources.CreateCommand_InvalidExpiresOn_Error); 213reporter.Error(Resources.CreateCommand_InvalidClaims_Error);
Commands\KeyCommand.cs (1)
64reporter.Error("[Y]es / [N]o");
Commands\RemoveCommand.cs (1)
55reporter.Error(Resources.FormatRemoveCommand_NoJwtFound(id));
Helpers\DevJwtCliHelpers.cs (4)
34reporter.Error(Resources.ProjectOption_ProjectNotFound); 41reporter.Error(Resources.ProjectOption_SercretIdNotFound); 55reporter.Error(Resources.RemoveCommand_InvalidAppsettingsFile_Error); 60reporter.Error(Resources.FormatRemoveCommand_AppsettingsFileNotFound_Error(Path.Combine(Path.GetDirectoryName(projectPath), appsettingsFile)));
Program.cs (2)
59_reporter.Error(parsingException.Message); 64_reporter.Error(ex.Message);
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (6)
41_reporter.Error(ex.Message); 108_reporter.Error($"Exit code: {process.ExitCode}"); 109_reporter.Error(SecretsHelpersResources.FormatError_ProjectFailedToLoad(projectFile)); 115_reporter.Error(SecretsHelpersResources.FormatError_ProjectMissingId(projectFile)); 122_reporter.Error(SecretsHelpersResources.FormatError_ProjectMissingId(projectFile)); 147_reporter.Error("Fatal error: could not find SecretManager.targets");