Cldr.AcceptLanguage.errors
You're seeing just the function
errors
, go back to Cldr.AcceptLanguage module for more information.
Specs
Filters the returned results of parse/1
to return
only the error tuples.
Example
iex> Cldr.AcceptLanguage.parse!("da,zh-TW;q=0.3,invalid_tag", TestBackend.Cldr)
...> |> Cldr.AcceptLanguage.errors
[
error: {Cldr.LanguageTag.ParseError,
"Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11"}
]