8 implementations of DisplayError
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
495public void DisplayError(string errorMessage, bool allowMarkup = false)
Interaction\ExtensionInteractionService.cs (1)
393public void DisplayError(string errorMessage, bool allowMarkup = false)
Aspire.Cli.Tests (6)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1241public void DisplayError(string errorMessage, bool allowMarkup = false) => DisplayedErrors.Add(errorMessage);
Commands\UpdateCommandTests.cs (1)
3719public void DisplayError(string errorMessage, bool allowMarkup = false) => _innerService.DisplayError(errorMessage, allowMarkup);
Projects\ExtensionGuestLauncherTests.cs (1)
235public void DisplayError(string errorMessage, bool allowMarkup = false) => throw new NotImplementedException();
Templating\DotNetTemplateFactoryTests.cs (1)
403public void DisplayError(string message, bool allowMarkup = false) { }
TestServices\TestExtensionInteractionService.cs (1)
122public void DisplayError(string errorMessage, bool allowMarkup = false)
TestServices\TestInteractionService.cs (1)
249public void DisplayError(string errorMessage, bool allowMarkup = false)
160 references to DisplayError
aspire (159)
Commands\AddCommand.cs (1)
116InteractionService.DisplayError(AddCommandStrings.SourceWithCredentialsNotSupported);
Commands\AgentInitCommand.cs (6)
269InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidEnvironments, 350InteractionService.DisplayError(bundleInstallFailureMessage); 472InteractionService.DisplayError(message!); 485InteractionService.DisplayError(ex.Message); 541InteractionService.DisplayError(ex.Message); 834InteractionService.DisplayError(
Commands\ApiListCommand.cs (1)
61InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.NoApiEntriesFound, scope));
Commands\ApiSearchCommand.cs (1)
75InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.NoResultsFound, query));
Commands\AppHostConnectionResultHandler.cs (2)
15interactionService.DisplayError(errorMessage); 28interactionService.DisplayError(errorMessage);
Commands\AppHostLauncher.cs (3)
869interactionService.DisplayError(RunCommandStrings.FailedToStartAppHost); 888interactionService.DisplayError(RunCommandStrings.FailedToStartAppHost); 892interactionService.DisplayError(failureMessage);
Commands\AppHostStartupTimeout.cs (1)
31interactionService.DisplayError(string.Format(
Commands\BaseCommand.cs (2)
128InteractionService.DisplayError(miscasedOptionError); 216InteractionService.DisplayError(result.ErrorMessage);
Commands\CacheCommand.cs (1)
69InteractionService.DisplayError(errorMessage);
Commands\CertificatesCleanCommand.cs (2)
44InteractionService.DisplayError(details); 45InteractionService.DisplayError(CertificatesCommandStrings.CleanFailure);
Commands\ConfigCommand.cs (8)
103InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 170InteractionService.DisplayError(feature.Description); 175InteractionService.DisplayError(ErrorStrings.LegacyAppHostPathCannotBeSetWithConfigCommand); 181InteractionService.DisplayError(ErrorStrings.GlobalAppHostPathCannotBeSetWithConfigCommand); 200InteractionService.DisplayError(errorMessage); 396InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 430InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 438InteractionService.DisplayError(errorMessage);
Commands\DashboardRunCommand.cs (3)
429InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardFailedToStart, ex.Message)); 489InteractionService.DisplayError(exitMessage); 519InteractionService.DisplayError(GetExitCodeMessage(process.ExitCode));
Commands\DescribeCommand.cs (1)
222InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DescribeCommandStrings.ResourceNotFound, resourceName));
Commands\DocsSearchCommand.cs (1)
70InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.NoResultsFound, query));
Commands\ExportCommand.cs (1)
169InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.ResourceNotFound, resourceName));
Commands\InitCommand.cs (6)
418InteractionService.DisplayError(ex.Message); 423InteractionService.DisplayError(ex.Message); 432InteractionService.DisplayError(ex.Message); 450InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, installOutcome.ExitCode)); 471InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FailedToCreateAppHostFromTemplate, result)); 553InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FailedToParseExistingConfig, AspireConfigFile.FileName, configPath, ex.Message));
Commands\IntegrationSearchCommand.cs (3)
189InteractionService.DisplayError(AddCommandStrings.NoPolyglotCompatibleIntegrationsFound); 193InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.NoIntegrationPackagesMatchedSearchTerm, searchTerm)); 197InteractionService.DisplayError(AddCommandStrings.NoPackagesFound);
Commands\NewCommand.cs (8)
234InteractionService.DisplayError($"Template '{template.Name}' does not support language '{explicitLanguageId}'."); 246InteractionService.DisplayError($"Template '{template.Name}' does not support language '{explicitLanguageId}'."); 311InteractionService.DisplayError($"Template '{parseResult.CommandResult.Command.Name}' is not available. Ensure the required runtime is installed."); 318InteractionService.DisplayError("No templates are available for the current environment."); 324InteractionService.DisplayError(NewCommandStrings.NonInteractiveTemplateRequired); 333InteractionService.DisplayError("No templates are available for the current environment."); 508InteractionService.DisplayError(NewCommandStrings.SourceWithCredentialsCannotBePersisted); 516InteractionService.DisplayError(string.Format(
Commands\PipelineCommandBase.cs (4)
461InteractionService.DisplayError(errorMessage); 474InteractionService.DisplayError(errorMessage); 487InteractionService.DisplayError(errorMessage); 1183InteractionService.DisplayError(error);
Commands\RenderCommand.cs (5)
204InteractionService.DisplayError($"Unknown render scenario '{choice}'."); 240InteractionService.DisplayError("Something went terribly wrong while attempting to connect to the remote application host. The connection timed out after 30 seconds. Please verify that the host is running and that the network configuration allows traffic on the specified port."); 247InteractionService.DisplayError("This is an error message."); 253InteractionService.DisplayError("Failed to resolve package 'Aspire.Hosting.Azure.CosmosDB' version 9.2.0. The package source 'https://api.nuget.org/v3/index.json' returned a 503 Service Unavailable response. Please check your network connection and try again, or configure an alternative package source in your NuGet.config file."); 387InteractionService.DisplayError("Cancelled.");
Commands\ResourceCommandHelper.cs (4)
103interactionService.DisplayError($"Failed to validate command arguments for command '{commandName}' on resource '{resourceName}':{Environment.NewLine}{errorMessage}"); 108interactionService.DisplayError($"Failed to execute command '{commandName}' on resource '{resourceName}': {errorMessage}"); 146interactionService.DisplayError($"Failed to validate command arguments for command '{commandName}' on resource '{resourceName}':{Environment.NewLine}{errorMessage}"); 151interactionService.DisplayError($"Failed to {baseVerb} resource '{resourceName}': {errorMessage}");
Commands\Sdk\SdkDumpCommand.cs (3)
192InteractionService.DisplayError("Failed to build capability scanner."); 291InteractionService.DisplayError("Failed to build capability scanner."); 319InteractionService.DisplayError("Failed to dump capabilities for one or more integrations.");
Commands\Sdk\SdkExportCommand.cs (4)
198InteractionService.DisplayError("Failed to build the API export scanner."); 234InteractionService.DisplayError(ex.Message); 239InteractionService.DisplayError(ex.Message); 244InteractionService.DisplayError(ex.Message);
Commands\Sdk\SdkGenerateCommand.cs (1)
146InteractionService.DisplayError("Failed to build SDK generation server.");
Commands\StopCommand.cs (9)
199InteractionService.DisplayError(appHostFile is null 207InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.AmbiguousAppHostPid, processId)); 237InteractionService.DisplayError(StopCommandStrings.CouldNotDetermineAppHostPath); 269InteractionService.DisplayError(errorMessage); 311InteractionService.DisplayError(SharedCommandStrings.AppHostNotRunning); 342InteractionService.DisplayError(string.Format(CultureInfo.InvariantCulture, StopCommandStrings.MultipleAppHostsNonInteractive, s_appHostOption.Name, s_allOption.Name)); 446InteractionService.DisplayError(StopCommandStrings.DcpCleanupUnavailable); 453InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.DcpCleanupFailed, appHostDisplayPath, details)); 623InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.FailedToStopAppHost, appHostIdentifier));
Commands\StopCommand.TrayProtocol.cs (1)
63InteractionService.DisplayError(StopCommandStrings.ProtocolRequiresExactIdentity);
Commands\TelemetryCommandHelpers.cs (2)
201interactionService.DisplayError(TelemetryCommandStrings.DashboardUrlAndAppHostExclusive); 337interactionService.DisplayError(errorInfo.Error);
Commands\TelemetryLogsCommand.cs (1)
139_interactionService.DisplayError($"Resource '{resource}' not found.");
Commands\TelemetrySpansCommand.cs (1)
130InteractionService.DisplayError($"Resource '{resource}' not found.");
Commands\TelemetryTracesCommand.cs (2)
145InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.TraceNotFound, traceId)); 197InteractionService.DisplayError($"Resource '{resource}' not found.");
Commands\TerminalAttachCommand.cs (3)
87_interactionService.DisplayError(TerminalCommandStrings.ResourceRequired); 107_interactionService.DisplayError( 164_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
Commands\TerminalPsCommand.cs (1)
119_interactionService.DisplayError(
Commands\TerminalResourceResolver.cs (6)
38interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, 45interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, 63interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, 74interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, 84interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, 107interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
Commands\UpdateCommand.cs (1)
747InteractionService.DisplayError(
Commands\WaitCommand.cs (3)
131InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceNotFound, resourceName)); 137InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.WaitTimedOut, resourceName, statusLabel, timeoutSeconds)); 142InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceEnteredFailedState, resourceName, response.State ?? response.ErrorMessage));
Packaging\IntegrationPackageSearchService.cs (1)
223interactionService.DisplayError(ex.Message);
Projects\GuestAppHostProject.cs (15)
390_interactionService.DisplayError("Failed to prepare AppHost server."); 419_interactionService.DisplayError("Failed to restore one or more integration host packages."); 687_interactionService.DisplayError("Failed to restore one or more integration host packages."); 746_interactionService.DisplayError("App host exited unexpectedly."); 834_interactionService.DisplayError("GuestRuntime not initialized."); 999_interactionService.DisplayError($"Failed to run {DisplayName} AppHost: {ex.Message}"); 1490_interactionService.DisplayError("Failed to restore one or more integration host packages."); 1548_interactionService.DisplayError("App host exited unexpectedly."); 1651_interactionService.DisplayError($"Failed to publish {DisplayName} AppHost: {ex.Message}"); 2297_interactionService.DisplayError(summary); 2548_interactionService.DisplayError("GuestRuntime not initialized. This is a bug."); 2562_interactionService.DisplayError($"Failed to initialize {_resolvedLanguage?.DisplayName ?? "guest"} environment."); 2583_interactionService.DisplayError($"Failed to install {_resolvedLanguage?.DisplayName ?? "guest"} dependencies."); 2615_interactionService.DisplayError("GuestRuntime not initialized. This is a bug."); 2639_interactionService.DisplayError("GuestRuntime not initialized. This is a bug.");
Projects\LanguageService.cs (1)
128_interactionService.DisplayError($"Unknown language: '{explicitLanguageId}'");
Projects\ProjectLocator.cs (4)
819interactionService.DisplayError(message); 832interactionService.DisplayError(message); 844interactionService.DisplayError(message); 864interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfiguredAppHostPathHasInvalidCharacters, configFilePath, fieldName));
Scaffolding\ScaffoldingService.cs (5)
161_interactionService.DisplayError("Failed to build AppHost server."); 189_interactionService.DisplayError(TemplatingStrings.ProjectAlreadyExists); 319_interactionService.DisplayError($"Failed to parse root package.json: {ex.Message}"); 457_interactionService.DisplayError($"Failed to initialize {language.DisplayName} environment."); 488_interactionService.DisplayError($"Failed to install {language.DisplayName} dependencies.");
Templating\CliTemplateFactory.EmptyTemplate.cs (3)
20_interactionService.DisplayError("Language selection is required."); 27_interactionService.DisplayError($"Unknown language: '{languageId}'"); 122_interactionService.DisplayError($"Failed to create project files: {ex.Message}");
Templating\CliTemplateFactory.GoStarterTemplate.cs (4)
25_interactionService.DisplayError("Unable to determine Aspire version for the Go starter template."); 80_interactionService.DisplayError("Automatic 'aspire restore' is unavailable for the new Go starter project because no Go AppHost SDK generator was found."); 88_interactionService.DisplayError("Automatic 'aspire restore' failed for the new Go starter project. Run 'aspire restore' in the project directory for more details."); 103_interactionService.DisplayError($"Failed to create project files: {ex.Message}");
Templating\CliTemplateFactory.JavaStarterTemplate.cs (4)
25_interactionService.DisplayError("Unable to determine Aspire version for the Java starter template."); 80_interactionService.DisplayError("Automatic 'aspire restore' is unavailable for the new Java starter project because no Java AppHost SDK generator was found."); 88_interactionService.DisplayError("Automatic 'aspire restore' failed for the new Java starter project. Run 'aspire restore' in the project directory for more details."); 103_interactionService.DisplayError($"Failed to create project files: {ex.Message}");
Templating\CliTemplateFactory.PythonStarterTemplate.cs (4)
26_interactionService.DisplayError("Unable to determine Aspire version for the Python starter template."); 94_interactionService.DisplayError("Automatic 'aspire restore' is unavailable for the new Python starter project because no TypeScript AppHost SDK generator was found."); 102_interactionService.DisplayError("Automatic 'aspire restore' failed for the new Python starter project. Run 'aspire restore' in the project directory for more details."); 117_interactionService.DisplayError($"Failed to create project files: {ex.Message}");
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (4)
26_interactionService.DisplayError("Unable to determine Aspire version for the TypeScript starter template."); 78_interactionService.DisplayError("Automatic 'aspire restore' is unavailable for the new TypeScript starter project because no TypeScript AppHost SDK generator was found."); 86_interactionService.DisplayError("Automatic 'aspire restore' failed for the new TypeScript starter project. Run 'aspire restore' in the project directory for more details."); 101_interactionService.DisplayError($"Failed to create project files: {ex.Message}");
Templating\DotNetTemplateFactory.cs (6)
487interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, installOutcome.ExitCode)); 521interactionService.DisplayError(TemplatingStrings.ProjectAlreadyExists); 526interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreationFailed, newProjectExitCode)); 573interactionService.DisplayError(ex.Message); 578interactionService.DisplayError(ex.Message); 587interactionService.DisplayError(ex.Message);
Templating\OutputPathHelper.cs (1)
32interactionService.DisplayError(earlyError);
Utils\AppHostHelper.cs (4)
43interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectCouldNotBeAnalyzed, logFilePath)); 49interactionService.DisplayError(ErrorStrings.ProjectIsNotAppHost); 55interactionService.DisplayError(ErrorStrings.CouldNotParseAspireSDKVersion); 62interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.AspireSDKVersionNotSupported, aspireHostingVersion));
Utils\SdkInstallHelper.cs (1)
58interactionService.DisplayError(sdkErrorMessage);
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
3719public void DisplayError(string errorMessage, bool allowMarkup = false) => _innerService.DisplayError(errorMessage, allowMarkup);