2 implementations of Error
dotnet-user-jwts (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
52public virtual void Error(string message)
src\aspnetcore\src\Tools\Shared\CommandLine\NullReporter.cs (1)
26public void Error(string message)
30 references to Error
dotnet-user-jwts (30)
Commands\CreateCommand.cs (7)
147reporter.Error(Resources.CreateCommand_NoAudience_Error); 158reporter.Error(Resources.FormatCreateCommand_InvalidDate_Error("--not-before")); 169reporter.Error(Resources.FormatCreateCommand_InvalidDate_Error("--expires-on")); 175reporter.Error(Resources.CreateCommand_InvalidExpiresOn_Error); 189reporter.Error(Resources.FormatCreateCommand_InvalidPeriod_Error("--valid-for")); 195reporter.Error(Resources.CreateCommand_InvalidExpiresOn_Error); 215reporter.Error(Resources.CreateCommand_InvalidClaims_Error);
Commands\KeyCommand.cs (1)
70reporter.Error("[Y]es / [N]o");
Commands\ProjectCommandLineApplication.cs (1)
55Reporter.Error(Resources.ProjectAndFileOptions_Error);
Commands\RemoveCommand.cs (1)
60reporter.Error(Resources.FormatRemoveCommand_NoJwtFound(id));
Helpers\DevJwtCliHelpers.cs (8)
43reporter.Error(Resources.ProjectOption_SercretIdNotFound); 62reporter.Error(Resources.ProjectOption_FileBasedAppNotSupported); 74reporter.Error(Resources.ProjectOption_ProjectNotFound); 84reporter.Error(Resources.FileOption_FileNotFound); 91reporter.Error(Resources.FileOption_InvalidExtension); 97reporter.Error(Resources.FileOption_FileNotFound); 113reporter.Error(Resources.RemoveCommand_InvalidAppsettingsFile_Error); 118reporter.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\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (10)
42_reporter.Error(ex.Message); 114_reporter.Error($"Exit code: {process.ExitCode}"); 115_reporter.Error(SecretsHelpersResources.FormatError_ProjectFailedToLoad(projectFile)); 121_reporter.Error(SecretsHelpersResources.FormatError_ProjectMissingId(projectFile)); 128_reporter.Error(SecretsHelpersResources.FormatError_ProjectMissingId(projectFile)); 198_reporter.Error($"Exit code: {process.ExitCode}"); 199_reporter.Error(SecretsHelpersResources.FormatError_ProjectFailedToLoad(projectFile)); 207_reporter.Error(SecretsHelpersResources.FormatError_ProjectMissingId(projectFile)); 216_reporter.Error(SecretsHelpersResources.FormatError_ProjectMissingId(projectFile)); 260_reporter.Error("Fatal error: could not find SecretManager.targets");