Skip to content

Commit

Permalink
fix: raise SandboxError exception if unsupported platform
Browse files Browse the repository at this point in the history
  • Loading branch information
qkaiser authored and vlaci committed Feb 20, 2024
1 parent d04c2e4 commit e2763ef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sandbox/unsupported.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
use log;

use crate::sandbox::AccessFS;

pub fn restrict_access(_access_rules: &[AccessFS]) -> Result<(), Box<dyn std::error::Error>> {
log::warn!("Sandboxing FS access is unavailable on this system");

Ok(())
Err("Sandboxing FS access is unavailable on this system")?
}

0 comments on commit e2763ef

Please sign in to comment.