File size: 151 Bytes
097eaf0
 
 
 
 
1
2
3
4
5
6
use napi::bindgen_prelude::*;

pub fn to_napi_err<E: std::fmt::Display>(error: E) -> Error {
  Error::new(Status::GenericFailure, error.to_string())
}