Commit 967449a
committed
Handle exceptions when calling Set-ExecutionPolicy
This change adds a try/catch around our invocation of Set-ExecutionPolicy
to catch a CmdletInvocationException if a global ExecutionPolicy has
already been set on the machine.
Resolves #192.
Resolves PowerShell/vscode-powershell#454.1 parent 34f949c commit 967449a
1 file changed
+12
-3
lines changedLines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
1302 | 1303 | | |
1303 | 1304 | | |
1304 | 1305 | | |
1305 | | - | |
1306 | | - | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
1307 | 1316 | | |
1308 | | - | |
| 1317 | + | |
1309 | 1318 | | |
1310 | 1319 | | |
1311 | 1320 | | |
| |||
0 commit comments