mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-12 20:15:26 +00:00
fix: the Windows installer fails when docsgpt up fails
This commit is contained in:
1 parent
28cbd268f2
commit
065adaa101
1 file changed
+2
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user