From 065adaa1018a7d08e64372e91ec497fee98a4c23 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 16 Sep 2026 00:27:42 +0100 Subject: [PATCH] fix: the Windows installer fails when docsgpt up fails --- deployment/install.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/install.ps1 b/deployment/install.ps1 index 2eb2b71f..e8ea9a96 100644 --- a/deployment/install.ps1 +++ b/deployment/install.ps1 @@ -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" } }