pub fn err_to_js<E: ToString>(e: E) -> JsValue
Expand description

Converts any error that can be converted into a string into a JavaScript error string usable by wasm_bindgen