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)
468
spawnActivity.
SetError
(ex.Message);
536
getDashboardUrlsActivity.
SetError
(ex.Message);
625
waitForBackchannelActivity.
SetError
(launchFailureMessage ?? "Timed out waiting for AppHost startup readiness.");
743
waitForBackchannelActivity.
SetError
($"Child CLI exited with code {exitCode}.");
Commands\StopCommand.cs (1)
524
activity.
SetError
($"Stop exited with code {exitCode}.");
DotNet\DotNetCliRunner.cs (1)
305
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)
1195
profileCommandActivity.
SetError
($"Command exited with code {exitCode}.");
Projects\AppHostServerSession.cs (1)
216
_activity.
SetError
(ex.Message);
Projects\DotNetAppHostProject.cs (1)
1472
isolatedModeActivity.
SetError
(ex.Message);
Projects\GuestRuntime.cs (4)
121
activity.
SetError
($"{_spec.DisplayName} initialization exited with code {exitCode}.");
173
activity.
SetError
($"{_spec.DisplayName} dependency installation exited with code {exitCode}.");
303
activity.
SetError
($"{_spec.DisplayName} pre-execution exited with code {exitCode}.");
594
activity.
SetError
($"{_spec.DisplayName} execution exited with code {exitCode}.");
Telemetry\ProfilingTelemetry.cs (1)
946
SetError
($"Build exited with code {exitCode}.");