feat: better error handling
This commit is contained in:
@@ -9,9 +9,13 @@ fn init() {
|
||||
static INIT: Once = Once::new();
|
||||
INIT.call_once(|| {
|
||||
#[cfg(not(feature = "daemon"))]
|
||||
unsafe { std::env::set_var("NIX_JS_STORE_MODE", "simulated") };
|
||||
unsafe {
|
||||
std::env::set_var("NIX_JS_STORE_MODE", "simulated")
|
||||
};
|
||||
#[cfg(feature = "daemon")]
|
||||
unsafe { std::env::set_var("NIX_JS_STORE_MODE", "daemon") };
|
||||
unsafe {
|
||||
std::env::set_var("NIX_JS_STORE_MODE", "daemon")
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user