Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit cb1eb89

Browse files
committed
fix: raise SandboxError exception if unsupported platform
1 parent beae044 commit cb1eb89

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/sandbox/unsupported.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
use log;
2-
31
use crate::sandbox::AccessFS;
42

53
pub fn restrict_access(_access_rules: &[AccessFS]) -> Result<(), Box<dyn std::error::Error>> {
6-
log::warn!("Sandboxing FS access is unavailable on this system");
7-
8-
Ok(())
4+
Err("Sandboxing FS access is unavailable on this system")?
95
}

0 commit comments

Comments
 (0)