From 6eae114f5afce784828b10970e42aeaf58b3b08d Mon Sep 17 00:00:00 2001 From: Al Idian Date: Tue, 15 Jun 2021 10:29:31 -0700 Subject: [PATCH] Correct parameter reference passed to exception (#15580) --- src/System.Management.Automation/engine/hostifaces/PSCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs index 702bd6ab88..32ec57e089 100644 --- a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs +++ b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs @@ -89,7 +89,7 @@ namespace System.Management.Automation { if (command == null) { - throw PSTraceSource.NewArgumentNullException("cmdlet"); + throw PSTraceSource.NewArgumentNullException(nameof(command)); } if (_owner != null)