We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ConciseView
1 parent 8e12b00 commit 532864cCopy full SHA for 532864c
src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
@@ -1063,7 +1063,7 @@ function Get-ConciseViewPositionMessage {
1063
$prefix = ''
1064
$newline = [Environment]::Newline
1065
1066
- if ($myinv -and $myinv.ScriptName -or $_.CategoryInfo.Category -eq 'ParserError') {
+ if ($myinv -and $myinv.ScriptName -or $myinv.ScriptLineNumber -gt 1 -or $_.CategoryInfo.Category -eq 'ParserError') {
1067
if ($myinv.ScriptName) {
1068
$posmsg = ""${resetcolor}$($myinv.ScriptName)${newline}""
1069
}
0 commit comments