Repository navigation
-Verbose should not override $ErrorActionPreference - #5113
Aditya Patwardhan (adityapatwardhan) merged 3 commits into
Conversation
Andrew (anmenaga)
left a comment
There was a problem hiding this comment.
This change is only for Verbose;
however, original issue says that it was approved for both: Verbose and Debug : "Committee agrees that we should fix this so that -ErrorAction works correctly and not overridden by -Debug or -Verbose".
Should this change be done for Debug as well?
|
Andrew (@anmenaga) that's a fair point about |
|
Andrew (@anmenaga) can you review again? |
| Path = "$testdrive\test.txt"; | ||
| Confirm = $false | ||
| } | ||
| New-Item @params |
There was a problem hiding this comment.
> $null
There was a problem hiding this comment.
will add
|
Aditya Patwardhan (@adityapatwardhan) can you review again? |
|
Is this likely to make it into the final for Powershell 6? |
|
Rob Emery (@mintsoft) This was merged to master so it will be in the release unless it needs to be reverted for some reason. |
* -Verbose should not override $ErrorActionPreference * apply same fix to -debug and added test case * address Aditya's feedback
Fix #2247