7 implementations of DisplayError
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
160public void DisplayError(string errorMessage)
Interaction\ExtensionInteractionService.cs (1)
229public void DisplayError(string errorMessage)
Aspire.Cli.Tests (5)
Commands\NewCommandTests.cs (1)
674public void DisplayError(string errorMessage) { }
Commands\PublishCommandPromptingIntegrationTests.cs (1)
987public void DisplayError(string errorMessage) => DisplayedErrors.Add(errorMessage);
Templating\DotNetTemplateFactoryTests.cs (1)
390public void DisplayError(string message) { }
TestServices\TestConsoleInteractionService.cs (1)
59public void DisplayError(string errorMessage)
TestServices\TestExtensionInteractionService.cs (1)
65public void DisplayError(string errorMessage)
63 references to DisplayError
aspire (63)
Commands\AddCommand.cs (4)
132InteractionService.DisplayError(AddCommandStrings.NoPackagesFound); 184InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageInstallationFailed, addPackageResult)); 204InteractionService.DisplayError(ex.Message); 210InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.ErrorOccurredWhileAddingPackage, ex.Message));
Commands\BaseCommand.cs (6)
63interactionService.DisplayError(InteractionServiceStrings.SpecifiedProjectFileNotAppHostProject); 68interactionService.DisplayError(InteractionServiceStrings.ProjectOptionDoesntExist); 73interactionService.DisplayError(InteractionServiceStrings.ProjectOptionNotSpecifiedMultipleAppHostsFound); 78interactionService.DisplayError(InteractionServiceStrings.ProjectOptionNotSpecifiedNoCsprojFound); 83interactionService.DisplayError(InteractionServiceStrings.UnbuildableAppHostsDetected); 87interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Commands\CacheCommand.cs (1)
125InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, CacheCommandStrings.CacheClearFailed, ex.Message));
Commands\ConfigCommand.cs (9)
88InteractionService.DisplayError(ErrorStrings.ConfigurationKeyRequired); 112InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 152InteractionService.DisplayError(ErrorStrings.ConfigurationKeyRequired); 158InteractionService.DisplayError(ErrorStrings.ConfigurationValueRequired); 193InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorSettingConfiguration, ex.Message)); 262InteractionService.DisplayError(ErrorStrings.ConfigurationKeyRequired); 276InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 310InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 316InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorDeletingConfiguration, ex.Message));
Commands\ExecCommand.cs (9)
106InteractionService.DisplayError(ExecCommandStrings.TargetResourceNotSpecified); 114InteractionService.DisplayError(ExecCommandStrings.NoCommandSpecified); 122InteractionService.DisplayError(ExecCommandStrings.FailedToParseCommand); 148InteractionService.DisplayError(ErrorStrings.CommandNotSupportedWithSingleFileAppHost); 261InteractionService.DisplayError(RunCommandStrings.ProjectCouldNotBeRun); 272InteractionService.DisplayError(RunCommandStrings.ProjectCouldNotBeRun); 294InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message)); 299InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message)); 305InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Commands\InitCommand.cs (9)
151InteractionService.DisplayError("Failed to get projects from solution."); 298InteractionService.DisplayError("Failed to install Aspire templates."); 325InteractionService.DisplayError($"Failed to create Aspire projects. Exit code: {createResult}"); 336InteractionService.DisplayError("Failed to find created AppHost or ServiceDefaults projects in template output."); 378InteractionService.DisplayError($"Failed to add AppHost project to solution. Exit code: {addAppHostResult}"); 404InteractionService.DisplayError($"Failed to add ServiceDefaults project to solution. Exit code: {addServiceDefaultsResult}"); 436InteractionService.DisplayError($"Failed to add reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}."); 470InteractionService.DisplayError($"Failed to add ServiceDefaults reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}."); 497InteractionService.DisplayError("Single-file AppHost template not found.");
Commands\PipelineCommandBase.cs (5)
176InteractionService.DisplayError(InteractionServiceStrings.ProjectCouldNotBeBuilt); 250InteractionService.DisplayError(GetCanceledMessage()); 272InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message)); 280InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message)); 730InteractionService.DisplayError(error);
Commands\RunCommand.cs (5)
163InteractionService.DisplayError(InteractionServiceStrings.ProjectCouldNotBeBuilt); 237InteractionService.DisplayError(RunCommandStrings.DashboardFailedToStart); 363InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message.EscapeMarkup())); 368InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message.EscapeMarkup())); 374InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message.EscapeMarkup()));
Commands\UpdateCommand.cs (4)
93InteractionService.DisplayError("CLI self-update is not available in this environment."); 123InteractionService.DisplayError(message); 155InteractionService.DisplayError("Unable to determine the current executable path."); 173InteractionService.DisplayError($"Failed to update CLI: {ex.Message}");
Templating\DotNetTemplateFactory.cs (5)
345interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, templateInstallResult.ExitCode)); 379interactionService.DisplayError(TemplatingStrings.ProjectAlreadyExists); 384interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreationFailed, newProjectExitCode)); 405interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message)); 410interactionService.DisplayError(ex.Message);
Utils\AppHostHelper.cs (4)
22interactionService.DisplayError(ErrorStrings.ProjectCouldNotBeAnalyzed); 28interactionService.DisplayError(ErrorStrings.ProjectIsNotAppHost); 34interactionService.DisplayError(ErrorStrings.CouldNotParseAspireSDKVersion); 41interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.AspireSDKVersionNotSupported, appHostInformation.AspireHostingVersion));
Utils\SdkInstallHelper.cs (2)
51interactionService.DisplayError(sdkErrorMessage); 103interactionService.DisplayError(