2 implementations of Error
dotnet-user-jwts (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
52
public virtual void
Error
(string message)
src\aspnetcore\src\Tools\Shared\CommandLine\NullReporter.cs (1)
26
public void
Error
(string message)
30 references to Error
dotnet-user-jwts (30)
Commands\CreateCommand.cs (7)
147
reporter.
Error
(Resources.CreateCommand_NoAudience_Error);
158
reporter.
Error
(Resources.FormatCreateCommand_InvalidDate_Error("--not-before"));
169
reporter.
Error
(Resources.FormatCreateCommand_InvalidDate_Error("--expires-on"));
175
reporter.
Error
(Resources.CreateCommand_InvalidExpiresOn_Error);
189
reporter.
Error
(Resources.FormatCreateCommand_InvalidPeriod_Error("--valid-for"));
195
reporter.
Error
(Resources.CreateCommand_InvalidExpiresOn_Error);
215
reporter.
Error
(Resources.CreateCommand_InvalidClaims_Error);
Commands\KeyCommand.cs (1)
70
reporter.
Error
("[Y]es / [N]o");
Commands\ProjectCommandLineApplication.cs (1)
55
Reporter.
Error
(Resources.ProjectAndFileOptions_Error);
Commands\RemoveCommand.cs (1)
60
reporter.
Error
(Resources.FormatRemoveCommand_NoJwtFound(id));
Helpers\DevJwtCliHelpers.cs (8)
43
reporter.
Error
(Resources.ProjectOption_SercretIdNotFound);
62
reporter.
Error
(Resources.ProjectOption_FileBasedAppNotSupported);
74
reporter.
Error
(Resources.ProjectOption_ProjectNotFound);
84
reporter.
Error
(Resources.FileOption_FileNotFound);
91
reporter.
Error
(Resources.FileOption_InvalidExtension);
97
reporter.
Error
(Resources.FileOption_FileNotFound);
113
reporter.
Error
(Resources.RemoveCommand_InvalidAppsettingsFile_Error);
118
reporter.
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");