pub fn to_napi_error(err: E) -> napi::Error { napi::Error::from_reason(err.to_string()) }