Skip to content

Commit 4fd839a

Browse files
cgzonesetke
authored andcommitted
Improve error message
1 parent 6af5e64 commit 4fd839a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/proc.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,10 @@ impl Process {
360360
match Process::parse_maps(pid) {
361361
Ok(maps) => Self { pid, binary, maps: Some(maps) },
362362
Err(e) => {
363-
eprintln!("parse_maps Error: {}", e);
363+
eprintln!(
364+
"Failed to parse maps for process with ID {}: {}",
365+
pid, e
366+
);
364367
Self { pid, binary, maps: None }
365368
}
366369
}

0 commit comments

Comments
 (0)