mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix the exception reporting in ConvertFrom-StringData (#18336)
This commit is contained in:
+2
-2
@@ -69,7 +69,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
{
|
||||
throw PSTraceSource.NewInvalidOperationException(
|
||||
ConvertFromStringData.InvalidDataLine,
|
||||
line);
|
||||
s);
|
||||
}
|
||||
|
||||
string name = s.Substring(0, index);
|
||||
@@ -79,7 +79,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
{
|
||||
throw PSTraceSource.NewInvalidOperationException(
|
||||
ConvertFromStringData.DataItemAlreadyDefined,
|
||||
line,
|
||||
s,
|
||||
name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user