Skip to content

Commit 275e6a1

Browse files
Copilotoising
andauthored
Fix: Return Success=false for cancelled operations (#9)
* Initial plan * Fix: Return Success=false for cancelled operations Co-authored-by: oising <1844001+oising@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: oising <1844001+oising@users.noreply.github.com>
1 parent e4852d0 commit 275e6a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Src/Nivot.Aspire.Hosting.ProjectCommander/ResourceBuilderProjectCommanderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private static void RegisterStartupFormCommand<T>(IResourceBuilder<T> builder, S
124124
{
125125
return new ExecuteCommandResult
126126
{
127-
Success = true,
127+
Success = false,
128128
ErrorMessage = "Configuration cancelled."
129129
};
130130
}
@@ -243,7 +243,7 @@ public static IResourceBuilder<T> WithProjectCommands<T>(
243243

244244
if (result.Canceled)
245245
{
246-
return new ExecuteCommandResult() { Success = true, ErrorMessage = "User cancelled command." };
246+
return new ExecuteCommandResult() { Success = false, ErrorMessage = "User cancelled command." };
247247
}
248248

249249
var args = new string?[command.Arguments.Length];

0 commit comments

Comments
 (0)