X Tutup
Skip to content

Disable strict mode in Get-Error formatting script#10800

Merged
adityapatwardhan merged 2 commits intoPowerShell:masterfrom
SteveL-MSFT:geterror-strictmode
Oct 18, 2019
Merged

Disable strict mode in Get-Error formatting script#10800
adityapatwardhan merged 2 commits intoPowerShell:masterfrom
SteveL-MSFT:geterror-strictmode

Conversation

@SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Oct 16, 2019

PR Summary

Need to disable strict mode as the formatting script is dealing with lots of different types of objects dynamically. If user uses Set-StrictMode then this formatting fails to render anything. Fix is to disable strict mode within the scope of this script. Also rename the label of ErrorIdentifier to ErrorIndex.

PR Checklist

@adityapatwardhan adityapatwardhan added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Oct 18, 2019
@adityapatwardhan adityapatwardhan merged commit 3806c39 into PowerShell:master Oct 18, 2019
kilasuit pushed a commit to kilasuit/PowerShell that referenced this pull request Nov 9, 2019
@SteveL-MSFT SteveL-MSFT deleted the geterror-strictmode branch June 6, 2020 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup