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

Commit 03630c7

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

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/sandbox/unsupported.rs

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

5-
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(())
3+
pub fn restrict_access(_access_rules: &[AccessFS]) -> Result<(), Box<dyn std::error::Error>> {
4+
Err("Sandboxing FS access is unavailable on this system")?
95
}

0 commit comments

Comments
 (0)