Skip to content

Disable strict mode in Get-Error formatting script - #10800

Merged
Aditya Patwardhan (adityapatwardhan) merged 2 commits into
PowerShell:masterfrom
SteveL-MSFT:geterror-strictmode
Oct 18, 2019
Merged

Aditya Patwardhan (adityapatwardhan) merged 2 commits into
PowerShell:masterfrom
SteveL-MSFT:geterror-strictmode

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Oct 16, 2019 •

Copy link
Copy Markdown
Member

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 Aditya Patwardhan (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
Aditya Patwardhan (adityapatwardhan) merged commit 3806c39 into PowerShell:master Oct 18, 2019
Ryan Yates (kilasuit) pushed a commit to kilasuit/PowerShell that referenced this pull request Nov 9, 2019
@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the geterror-strictmode branch June 6, 2020 02:31
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
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