mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-04 19:15:33 +08:00
6 lines
147 B
Rust
6 lines
147 B
Rust
use napi::{Error, Status};
|
|
|
|
pub(super) fn napi_error(message: impl Into<String>) -> Error {
|
|
Error::new(Status::GenericFailure, message.into())
|
|
}
|