6 lines
139 B
Rust
6 lines
139 B
Rust
use napi::bindgen_prelude::*;
|
|
|
|
#[napi]
|
|
fn throw_error() -> Result<()> {
|
|
Err(Error::new(Status::InvalidArg, "Manual Error".to_owned()))
|
|
}
|