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 committed Jan 11, 2024
1 parent beae044 commit d1b0d91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sandbox/unsupported.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use log;

use crate::sandbox::SandboxError;
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(())
SandboxError::new_err("Sandboxing FS access is unavailable on this system".to_string())
}

0 comments on commit d1b0d91

Please sign in to comment.