mischov / meeseeks_html5ever

Meeseeks-specific NIF binding of html5ever using Rustler.
Apache License 2.0
10 stars 15 forks source link

Return better error when input is not valid utf8 #24

Closed mischov closed 5 years ago

mischov commented 5 years ago

PR for issue #23.

When provided with non-utf-8 input, now returns

"input is not valid utf8"

instead of

"called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 97046, error_len: Some(1) }"