mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Disable strict mode in Get-Error formatting script (#10800)
This commit is contained in:
committed by
Aditya Patwardhan
parent
bd21d8f3fb
commit
3806c396b1
+3
-1
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user