PowerShell 5.1 控制台:如何获得更好的默认错误处理?
在 powershell 5.1 中,默认错误响应如下所示: Aug01 14:26:01 C:\> throw [Collections.Generic.KeyNotFoundException]::new('example') example At line:1 char:1 + throw [Collections.Generic.KeyNotFoundException]::new('example') + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...