From c3b80b9f49cc1dedf22cbff9999e03c6a606e9b1 Mon Sep 17 00:00:00 2001 From: Al Idian Date: Mon, 14 Jun 2021 23:03:08 -0700 Subject: [PATCH] Correct parameter reference passed to exception --- 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 77bf704f383..bdf09eadcf0 100644 --- a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs +++ b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs @@ -89,7 +89,7 @@ public PSCommand AddCommand(string command) { if (command == null) { - throw PSTraceSource.NewArgumentNullException("cmdlet"); + throw PSTraceSource.NewArgumentNullException(nameof(command)); } if (_owner != null)