Skip to content

Conversation

@SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Dec 17, 2019

PR Summary

The NormalView code tries to use a member that may not exist. So when using strict mode, this line fails and so nothing is returned to the user as an exception is thrown in the formatter. Fix is to move the call to turn off strict mode from the helper function to the outer script block.

PR Context

Fix #11371

PR Checklist

@iSazonov iSazonov added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Dec 17, 2019
@iSazonov iSazonov merged commit edd3e76 into PowerShell:master Dec 17, 2019
@SteveL-MSFT SteveL-MSFT deleted the errorview-strictmode branch December 17, 2019 19:04
@daxian-dbw daxian-dbw modified the milestones: GA-approved, 7.0.0-rc.2 Jan 11, 2020
@ghost
Copy link

ghost commented Jan 16, 2020

🎉v7.0.0-rc.2 has been released which incorporates this pull request.:tada:

Handy links:

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.

v7.0.0-rc.1 regression - error on error formatting with strict mode and $ErrorView = 'NormalView'

5 participants