Skip to content

Commit

Permalink
fix(rsjudge-runner): 🥅 keep error information when running set_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Jul 2, 2024
1 parent 00a9b51 commit c1accb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rsjudge-runner/src/run_as.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl SetGroups for Command {

let set_groups = move || {
CapHandle::new(Cap::SETGID)
.map_err(|e| io::Error::new(ErrorKind::PermissionDenied, e.to_string()))?;
.map_err(|e| io::Error::new(ErrorKind::PermissionDenied, e))?;
log_if_error!(setgroups(&groups))?;
Ok(())
};
Expand Down

0 comments on commit c1accb3

Please sign in to comment.