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

This commit is contained in:
Steve Lee
2019-10-18 14:42:17 -07:00
committed by Aditya Patwardhan
parent bd21d8f3fb
commit 3806c396b1
@@ -733,9 +733,11 @@ namespace System.Management.Automation.Runspaces
{
yield return new FormatViewDefinition("GetErrorInstance",
CustomControl.Create()
.GroupByProperty("PSErrorIndex", label: "ErrorIdentifier")
.GroupByProperty("PSErrorIndex", label: "ErrorIndex")
.StartEntry()
.AddScriptBlockExpressionBinding(@"
Set-StrictMode -Off
$maxDepth = 10
$ellipsis = ""`u{2026}""
$resetColor = ''