You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The provided value has member 'type' that 'asdf' is not a valid enumeration value for ReadableStreamType
which is not grammatical. This arises because of how we compose our dictionary error message and enum error message.
Note that just trying to convert "asdf" to ReadableStreamType would produce something like
The provided value 'asdf' is not a valid enumeration value for ReadableStreamType
Here are some thoughts:
Is it a good idea to mention enum names in error messages at all? They're not web-developer-facing, so maybe they should just be omitted, both in dictionaries and outside.
If we were to keep it, some ideas:
'asdf' is not a valid enumeration value for ReadableStreamType (provided as the 'type' member of the provided value)
'asdf' is not a valid ReadableStreamType enumeration value for the 'type' member of the provided value
The text was updated successfully, but these errors were encountered:
Currently, converting
{ type: "asdf" }
to a dictionary defined as followswill produce an error message like
which is not grammatical. This arises because of how we compose our dictionary error message and enum error message.
Note that just trying to convert
"asdf"
toReadableStreamType
would produce something likeHere are some thoughts:
The text was updated successfully, but these errors were encountered: