Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

151 B
Raw Blame
use napi::bindgen_prelude::*;

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