Skip to content

Commit 5fbae4a

Browse files
SteveL-MSFTiSazonov
andcommitted
Update src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
Co-authored-by: Ilya <[email protected]>
1 parent 39c5363 commit 5fbae4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ function Get-ConciseViewPositionMessage {
11061106
$prefix = ''
11071107
11081108
# Don't show line information if script module
1109-
if (($myinv -and $myinv.ScriptName -or $myinv.ScriptLineNumber -gt 1 -or $err.CategoryInfo.Category -eq 'ParserError') -and !($myinv.ScriptName.EndsWith('.psm1', [System.StringComparison]::InvariantCultureIgnoreCase))) {
1109+
if (($myinv -and $myinv.ScriptName -or $myinv.ScriptLineNumber -gt 1 -or $err.CategoryInfo.Category -eq 'ParserError') -and !($myinv.ScriptName.EndsWith('.psm1', [System.StringComparison]::OrdinalIgnoreCase))) {
11101110
$useTargetObject = $false
11111111
11121112
# Handle case where there is a TargetObject and we can show the error at the target rather than the script source

0 commit comments

Comments
 (0)