Jordan Borean
7f9c7463f2
Support TargetObject position in ParserErrors ( #26649 )
2026-01-21 13:55:42 -05:00
Justin Grote
7ad43292a8
Add RecommendedAction to ConciseView of the error reporting ( #20826 )
2024-04-15 10:35:23 -07:00
Patrick Meinecke
1dc2ebe5bc
Fix error formatting for pipeline enumeration exceptions ( #20211 )
2024-03-04 12:58:06 -08:00
Steve Lee
ec258e210f
Fix ConciseView to handle custom ParserError error records ( #19239 )
2023-03-01 11:18:11 -08:00
Dongbo Wang
17e4db9b1b
Make Out-String and Out-File keep string input unchanged ( #17455 )
2022-06-08 18:13:40 -07:00
Steve Lee
b5efe7bc39
Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output ( #14406 )
2021-07-20 09:02:52 +05:00
Steve Lee
375be2e705
Add DetailedView to $ErrorView ( #15609 )
2021-06-22 13:35:38 -07:00
Steve Lee
597bfc9696
Update Concise ErrorView to not show line information for errors from script module functions ( #14912 )
2021-03-08 23:37:11 +05:00
Steve Lee
36ba1092a8
Fix case where exception message contains "`n" on Windows ( #13684 )
2020-09-24 23:43:33 +05:00
Steve Lee
d25d964d57
Fix ConciseView for interactive advanced function writing error ( #13623 )
2020-09-14 11:07:37 -07:00
Steve Lee
ec20043a91
Remove use of Test-Path in ConciseView ( #12778 )
2020-06-11 16:07:18 +05:00
xtqqczze
f4382202ae
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files ( #12584 )
2020-05-07 17:00:30 +05:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance ( #12190 )
2020-03-24 11:08:37 -07:00
Steve Lee
2db8516a8c
Fix ConciseView to not show the line information within the error messages ( #11952 )
2020-02-26 21:07:57 +05:00
Steve Lee
34f9b43514
Fix ConciseView where error message is wider than window width and doesn't have whitespace ( #11880 )
2020-02-20 08:38:28 +05:00
Steve Lee
66912b7428
Fix unnecessary trimming of line resulting in incorrect indexi… ( #11670 )
2020-01-30 11:03:39 -08:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType ( #11558 )
2020-01-24 11:00:37 -08:00
Ilya
b221c2afa2
Correct pwsh run ( #11486 )
2020-01-05 12:17:41 +05:00
Steve Lee
5b42126f7c
Don't format exceptions that aren't ErrorRecords ( #11415 )
...
* In one of the previous PRs for ConciseView, System.Exception was incorrectly added to the typenames handled by the ErrorRecord formatting. This results in just Exception objects written to the console to not be rendered since the ErrorRecord formatting didn't handle this situation. Fix is to remove the line to add that type putting it back to how it was previously.
* Also made the handling of ErrorRecord a bit more robust just in case Exception.Message doesn't exist nor a Message property.
2019-12-21 09:45:44 +05:00
Steve Lee
563b1cba83
Add trailing line number to filename for ConciseView ( #11391 )
2019-12-18 14:05:56 -08:00
Steve Lee
edd3e7680c
Move Set-StrictMode to outer scriptblock for ErrorView ( #11381 )
2019-12-17 23:43:47 +05:00
Steve Lee
ed1f6e3144
Make approved features non-experimental ( #11303 )
2019-12-10 15:41:43 -08:00
Steve Lee
6e4da244c5
Update ConciseView to use TargetObject if applicable ( #11075 )
2019-12-10 09:50:51 -08:00
Steve Lee
2a45ccc787
Fix ConciseView to show Activity instead of myCommand ( #11007 )
...
ConciseView shows MyCommand as the prefix to the error message, but for a scriptblock, MyCommand is the whole scriptblock. Fix is to use CategoryInfo.Activity if available first. Also handle case where it's a script function by seeing if it's a command and showing MyCommand in that case rather than the Activity.
2019-11-10 16:21:10 +05:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00