pub fn to_napi_error(code: &str, e: impl Display) -> Error
Helper to convert any error to a napi::Error with an OpenClawError.
napi::Error
OpenClawError