diff --git a/src/System.Management.Automation/DscSupport/CimDSCParser.cs b/src/System.Management.Automation/DscSupport/CimDSCParser.cs index 15deef3d1..8aac81ca4 100644 --- a/src/System.Management.Automation/DscSupport/CimDSCParser.cs +++ b/src/System.Management.Automation/DscSupport/CimDSCParser.cs @@ -368,7 +368,8 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration if (!File.Exists(fullFilePath)) { - throw PSTraceSource.NewArgumentException("fullFilePath"); + var errorMessage = string.Format(CultureInfo.CurrentCulture, ParserStrings.FileNotFound, fullFilePath); + throw PSTraceSource.NewArgumentException(nameof(fullFilePath), errorMessage); } using (FileStream fs = File.OpenRead(fullFilePath))