ConvertFrom-StringData
mistakenly emits a statement-terminating error when one of its input strings isn't well-formed
#23793
Labels
Needs-Triage
The issue is new and needs to be triaged by a work group.
Prerequisites
Steps to reproduce
With multiple, individual strings as input,
ConvertFrom-StringData
mistakenly aborts processing overall, via a statement-terminating error, once an incorrectly formatted string is encountered; the expected behavior would be to merely emit a non-terminating error in that event, and continue processing further inputs:As an aside:
ConvertFrom-StringData
in this context, see MakeConvertFrom-StringData
more error tolerant #23790 (comment)Expected behavior
That is, processing should have continued after the incorrectly formatted input string, and the output should be two hashtables, one for each valid input string.
Actual behavior
That is, overall processing was unexpectedly aborted when the
broken
input string was encountered.Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: