Add support to Get-Error to handle BoundParameters#20640
Conversation
|
CodeFactor issue is by-design for empty catch statement in the test code |
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
8d42ed5 to
de9494a
Compare
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
* Add support to `Get-Error` to handle BoundParameters * sort the keys * change to generalize for all dictionaries * address Patrick's comment to generalize and use one codepath for dictionaries * address codefactor
PR Summary
BoundParameters is a PSBoundParametersDictionary so
Get-Errordidn't have special code to handle that so just tried to render it like any other .NET object which is not useful. Instead, add code to handle this case to render as name/value pairs (similar to the default formatting for this type).PR Context
Fix #20633
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).