fix: the Windows installer fails when docsgpt up fails

This commit is contained in:
Alex committed 2026-09-16 01:10:11 +01:00
1 parent 28cbd268f2
commit 065adaa101
1 file changed
+2 -1
+2 -1
View File
@@ -87,7 +87,8 @@ function Install-DocsGPT {
& $docsgpt up @UpArguments
if ($LASTEXITCODE -ne 0) {
Write-Error "docsgpt up exited with code $LASTEXITCODE. Run it again after fixing the problem above: docsgpt up" -ErrorAction Continue
# throw, not Write-Error: the caller (and any automation) must see this fail.
throw "docsgpt up exited with code $LASTEXITCODE. Fix the problem above and run it again: docsgpt up"
}
}