1use std::ffi::CStr; 2use std::mem::MaybeUninit; 3 4use crate::{api, prelude::*}; 5 6impl NapiExtendedErrorInfo { 7 pub fn error_message(&self) -> &str { 8 unsafe { CStr::from_ptr(self.error_message).to_str().unwrap() } 9 } 10}