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)
20 references to Error
dotnet-user-jwts (20)
Commands\CreateCommand.cs (8)
117reporter.Error(Resources.ProjectOption_ProjectNotFound); 138reporter.Error(Resources.CreateCommand_NoAudience_Error); 149reporter.Error(Resources.FormatCreateCommand_InvalidDate_Error("--not-before")); 160reporter.Error(Resources.FormatCreateCommand_InvalidDate_Error("--expires-on")); 166reporter.Error(Resources.CreateCommand_InvalidExpiresOn_Error); 180reporter.Error(Resources.FormatCreateCommand_InvalidPeriod_Error("--valid-for")); 186reporter.Error(Resources.CreateCommand_InvalidExpiresOn_Error); 206reporter.Error(Resources.CreateCommand_InvalidClaims_Error);
Commands\KeyCommand.cs (1)
64reporter.Error("[Y]es / [N]o");
Commands\RemoveCommand.cs (1)
42reporter.Error(Resources.FormatRemoveCommand_NoJwtFound(id));
Helpers\DevJwtCliHelpers.cs (2)
32reporter.Error(Resources.ProjectOption_ProjectNotFound); 39reporter.Error(Resources.ProjectOption_SercretIdNotFound);
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");