22 references to SetError
aspire (22)
Commands\AddCommand.cs (5)
84
addActivity.
SetError
(message ?? $"Add command exited with code {exitCode}.");
96
addActivity.
SetError
($"Add command exited with code {exitCode}.");
150
configuredChannelActivity.
SetError
($"Configured channel lookup exited with code {channelExitCode}.");
397
addPackageActivity.
SetError
("Package installation failed.");
426
addActivity.
SetError
(ex.Message);
Commands\AppHostLauncher.cs (4)
517
spawnActivity.
SetError
(ex.Message);
573
getDashboardUrlsActivity.
SetError
(ex.Message);
662
waitForBackchannelActivity.
SetError
(launchFailureMessage ?? "Timed out waiting for AppHost startup readiness.");
704
waitForBackchannelActivity.
SetError
($"Child CLI exited with code {exitCode}.");
Commands\StopCommand.cs (1)
532
activity.
SetError
($"Stop exited with code {exitCode}.");
DotNet\DotNetCliRunner.cs (1)
293
processActivity.
SetError
("Process failed to start.");
Git\GitRepository.cs (2)
58
activity.
SetError
($"git rev-parse exited with code {process.ExitCode}.");
144
activity.
SetError
($"git ls-files exited with code {process.ExitCode}.");
Npm\NpmRunner.cs (1)
317
activity.
SetError
($"npm exited with code {process.ExitCode}.");
Program.cs (1)
1187
profileCommandActivity.
SetError
($"Command exited with code {exitCode}.");
Projects\AppHostServerSession.cs (1)
216
_activity.
SetError
(ex.Message);
Projects\DotNetAppHostProject.cs (1)
1471
isolatedModeActivity.
SetError
(ex.Message);
Projects\GuestRuntime.cs (4)
106
activity.
SetError
($"{_spec.DisplayName} initialization exited with code {exitCode}.");
146
activity.
SetError
($"{_spec.DisplayName} dependency installation exited with code {exitCode}.");
272
activity.
SetError
($"{_spec.DisplayName} pre-execution exited with code {exitCode}.");
553
activity.
SetError
($"{_spec.DisplayName} execution exited with code {exitCode}.");
Telemetry\ProfilingTelemetry.cs (1)
950
SetError
($"Build exited with code {exitCode}.");