22 references to SetError
aspire (22)
Commands\AddCommand.cs (5)
89
addActivity.
SetError
(message ?? $"Add command exited with code {exitCode}.");
101
addActivity.
SetError
($"Add command exited with code {exitCode}.");
176
configuredChannelActivity.
SetError
($"Configured channel lookup exited with code {channelExitCode}.");
486
addPackageActivity.
SetError
("Package installation failed.");
515
addActivity.
SetError
(ex.Message);
Commands\AppHostLauncher.cs (4)
487
spawnActivity.
SetError
(ex.Message);
555
getDashboardUrlsActivity.
SetError
(ex.Message);
644
waitForBackchannelActivity.
SetError
(launchFailureMessage ?? "Timed out waiting for AppHost startup readiness.");
762
waitForBackchannelActivity.
SetError
($"Child CLI exited with code {exitCode}.");
Commands\StopCommand.cs (1)
633
activity.
SetError
($"Stop exited with code {exitCode}.");
DotNet\DotNetCliRunner.cs (1)
343
processActivity.
SetError
("Process failed to start.");
Git\GitRepository.cs (2)
34
activity.
SetError
($"git rev-parse exited with code {result.ExitStatus.ExitCode}.");
91
activity.
SetError
($"git ls-files exited with code {result.ExitStatus.ExitCode}.");
Npm\NpmRunner.cs (1)
288
activity.
SetError
($"npm exited with code {result.ExitStatus.ExitCode}.");
Program.cs (1)
1325
profileCommandActivity.
SetError
($"Command exited with code {exitCode}.");
Projects\AppHostServerSession.cs (1)
216
_activity.
SetError
(ex.Message);
Projects\DotNetAppHostProject.cs (1)
1476
isolatedModeActivity.
SetError
(ex.Message);
Projects\GuestRuntime.cs (4)
124
activity.
SetError
($"{_spec.DisplayName} initialization exited with code {exitCode}.");
176
activity.
SetError
($"{_spec.DisplayName} dependency installation exited with code {exitCode}.");
306
activity.
SetError
($"{_spec.DisplayName} pre-execution exited with code {exitCode}.");
597
activity.
SetError
($"{_spec.DisplayName} execution exited with code {exitCode}.");
Telemetry\ProfilingTelemetry.cs (1)
946
SetError
($"Build exited with code {exitCode}.");