Commit 01de407
committed
fix(install.ps1): replace Write-Error+exit with throw in Die()
With $ErrorActionPreference='Stop', Write-Error throws immediately and
exit 1 is dead code. More critically, exit 1 in an irm|iex session
would close the user's interactive PowerShell window if it were reached.
throw gives a clean single-line error message and is safe for
embedded execution via irm|iex.1 parent 62087c4 commit 01de407
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments