Skip to content

Commit

Permalink
Add logs when failing to get capable map
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed Jun 20, 2024
1 parent 657d27f commit 684f13b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion capable/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ where
let mut graph = std::collections::HashMap::new();
let mut init = CapSet::empty();
for key in capabilities_map.keys() {
let pid = key?;
let pid = key.inspect_err(|err| {
eprintln!("Failed to get pid : {:?}", err.to_string());
exit(-1);
})?;
let pinum_inum = pnsid_nsid_map.get(&pid, 0).unwrap_or(0);
let child = pinum_inum as u32;
let parent = (pinum_inum >> 32) as u32;
Expand Down

0 comments on commit 684f13b

Please sign in to comment.