1 implementation of DisplayError
aspire (1)
Interaction\InteractionService.cs (1)
91public void DisplayError(string errorMessage)
32 references to DisplayError
aspire (32)
Commands\AddCommand.cs (7)
98_interactionService.DisplayError("No packages found."); 150_interactionService.DisplayError($"The package installation failed with exit code {addPackageResult}. For more information run with --debug switch."); 161_interactionService.DisplayError("The --project option specified a project that does not exist."); 166_interactionService.DisplayError("The --project option was not specified and multiple app host project files were detected."); 171_interactionService.DisplayError("The project argument was not specified and no *.csproj files were detected."); 181_interactionService.DisplayError(ex.Message); 187_interactionService.DisplayError($"An error occurred while adding the package: {ex.Message}");
Commands\PublishCommand.cs (9)
113_interactionService.DisplayError("The project could not be built. For more information run with --debug switch."); 170_interactionService.DisplayError($"Publishing artifacts failed with exit code {exitCode}. For more information run with --debug switch."); 175_interactionService.DisplayError("The operation was canceled."); 180_interactionService.DisplayError("The specified project file is not an Aspire app host project."); 185_interactionService.DisplayError("The --project option specified a project that does not exist."); 190_interactionService.DisplayError("The --project option was not specified and multiple app host project files were detected."); 195_interactionService.DisplayError("The project argument was not specified and no *.csproj files were detected."); 207_interactionService.DisplayError($"An error occurred while connecting to the app host. The app host possibly crashed before it was available: {ex.Message}"); 213_interactionService.DisplayError($"An unexpected error occurred: {ex.Message}");
Commands\RunCommand.cs (8)
103_interactionService.DisplayError($"The project could not be built. For more information run with --debug switch."); 278_interactionService.DisplayError($"The project could not be run. For more information run with --debug switch."); 298_interactionService.DisplayError("The --project option specified a project that does not exist."); 303_interactionService.DisplayError("The --project option was not specified and multiple app host project files were detected."); 308_interactionService.DisplayError("The project argument was not specified and no *.csproj files were detected."); 320_interactionService.DisplayError($"An error occurred while trusting the certificates: {ex.Message}"); 325_interactionService.DisplayError($"An error occurred while connecting to the app host. The app host possibly crashed before it was available: {ex.Message}"); 331_interactionService.DisplayError($"An unexpected error occurred: {ex.Message}");
Templating\DotNetTemplateFactory.cs (4)
224interactionService.DisplayError($"The template installation failed with exit code {templateInstallResult.ExitCode}. For more information run with --debug switch."); 255interactionService.DisplayError($"Project creation failed with exit code {newProjectExitCode}. For more information run with --debug switch."); 272interactionService.DisplayError($"An error occurred while trusting the certificates: {ex.Message}"); 277interactionService.DisplayError(ex.Message);
Utils\AppHostHelper.cs (4)
20interactionService.DisplayError("The project could not be analyzed due to a build error. For more information run with --debug switch."); 26interactionService.DisplayError($"The project is not an Aspire app host project."); 32interactionService.DisplayError($"Could not parse Aspire SDK version."); 39interactionService.DisplayError($"The Aspire SDK version '{appHostInformation.AspireHostingSdkVersion}' is not supported. Please update to the latest version.");