Make sure the error message points to the type in question instead of to the `#[wasm_bindgen]` macro which can be overly confusing!