Skip to content

Commit 4a1d185

Browse files
zateutschCopilot
andauthored
Update src/winapp-CLI/WinApp.Cli/Services/WorkspaceSetupService.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e647205 commit 4a1d185

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/winapp-CLI/WinApp.Cli/Services/WorkspaceSetupService.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,10 @@ await taskContext.AddSubTaskAsync("Configuring developer mode", async (taskConte
420420
{
421421
return (0, $"NuGet packages added to [underline]{csprojFile.Name}[/], but failed to add: {failedList}");
422422
}
423-
return (1, $"Failed to add NuGet packages: {failedList}");
423+
424+
// Only optional package failures reach this point. Required package failures
425+
// already return non-zero in the catch block above, so do not abort init here.
426+
return (0, $"Failed to add optional NuGet packages: {failedList}");
424427
}
425428

426429
return (0, $"NuGet packages added to [underline]{csprojFile.Name}[/]");

0 commit comments

Comments
 (0)