File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 17
17
<ExpressionBinding >
18
18
<ScriptBlock >
19
19
<![CDATA[
20
- if ($formatter = Get-Command ConvertTo-$($global:ErrorView -replace "View")ErrorView -ListImported -ErrorAction Ignore -ParameterName InputObject -ParameterType [System.Management.Automation.ErrorRecord]) {
20
+ if ($formatter = Get-Command " ConvertTo-$($global:ErrorView -replace "View")ErrorView" -ListImported -ErrorAction Ignore -ParameterName InputObject -ParameterType [System.Management.Automation.ErrorRecord]) {
21
21
&@($formatter)[0] $_
22
22
} else {
23
23
ConvertTo-NormalErrorView $_
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function Format-Error {
18
18
Get-Command ConvertTo-* ErrorView - ListImported - ParameterName InputObject - ParameterType [System.Management.Automation.ErrorRecord ]
19
19
).Name -replace " ConvertTo-(.*)ErrorView" , ' $1' -like " *$ ( $wordToComplete ) *" )
20
20
})]
21
- $View = $ErrorView ,
21
+ $View = " Normal " ,
22
22
23
23
[Parameter (ValueFromPipeline , ValueFromPipelineByPropertyName )]
24
24
[System.Management.Automation.ErrorRecord ]$InputObject
You can’t perform that action at this time.
0 commit comments