diff --git a/bin/windows/rebuild.ps1 b/bin/windows/rebuild.ps1
index 24032c4..98960ce 100644
--- a/bin/windows/rebuild.ps1
+++ b/bin/windows/rebuild.ps1
@@ -1,3 +1,4 @@
+$ErrorActionPreference = "Stop"
 . ./bin/windows/destroy.ps1
 if ($lastexitcode -ne 0) { exit $lastexitcode} 
 . ./bin/windows/build.ps1