Come from #10746

Make sense to print error message on new line?
ParserError:
Line |
1 | $a=Get-Process -Id $PID | Format-List * | Out-Default | Select-String "Container" | 0/1
| ^
| Expressions are only allowed as the first element of a pipeline.
Screenshot after I decrease windows width

It may be worth considering also truncating lines longer than console width (adding ellipsis to indicate truncation) so that the relevant section is in the middle
Truncating error message? It makes it useless.
In most of these cases, you would already have the line of code on your screen so not necessary to repeat it.
My request is only about error message - to place it starting on new line.
@SteveL-MSFT Can you make a conclusion about my last comment?
cc @theJasonHelmick
When the position of the caret in the line is left of middle, I think it's better to have the message following the caret. However, I agree that when the caret is right of the middle, the wrapping makes it less pleasant. Perhaps one option is to use the middle to decide if the text should start on the next line?
Perhaps one option is to use the middle to decide if the text should start on the next line?
I'd prefer a simple rule that I proposed above. With more complex logic we will catch many bugs - console output is not easy to make reliable for all terminals and all use cases.
Would like to get some more feedback before making any change
Note that with https://github.com/PowerShell/PowerShell/pull/11398, ConciseView now uses the pre-formatted PositionMessage which does truncation, so long lines will now be truncated. However, if the error is at the end of the line, then it's still not ideal:

Maybe you add another line here. Have the error position indicator on a line by itself (in red) and then on the next line always left justify the error message (in red)?
ParserError:
Line |
1 | $a=get-process -id $pid | format-list * | out-default | select-string "container" | 0/1
| -----^-----
| Expressions are only allowed as the first element of a pipeline.
Mocked up in notepad so I lost the coloring but you get the idea.
Or maybe:
ParserError:
Line |
1 | $a=get-process -id $pid | format-list * | out-default | select-string "container" | 0/1
| -----^-----
Expressions are only allowed as the first element of a pipeline.
First better.
Also that indicator would need to be adjusted for begining (or near beginning) of the line to something like ^----- and at the end maybe -----^. You could get rid of the ----- chars and use just ^ but that might be a bit hard to spot.
Since I was using the pre-rendered PositionMessage anyways for a different fix, it sort of made sense to just use it for this one. So now with the PR, it looks like:

:tada:This issue was addressed in #11398, which has now been successfully released as v7.0.0-rc.2.:tada:
Handy links:
Most helpful comment
Since I was using the pre-rendered PositionMessage anyways for a different fix, it sort of made sense to just use it for this one. So now with the PR, it looks like: