Skip to content

Commit

Permalink
error: print the full error when available
Browse files Browse the repository at this point in the history
Errno wasn't getting printed in
checkpoint-restore/criu#1622 (comment)

Signed-off-by: Nicolas Viennot <[email protected]>
  • Loading branch information
nviennot committed Dec 28, 2021
1 parent 0d45c05 commit cd46dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ fn do_main() -> Result<()> {

fn main() {
if let Err(e) = do_main() {
eprintln!("criu-image-streamer Error: {}", e);
eprintln!("criu-image-streamer Error: {:#}", e);
}
}

Expand Down

0 comments on commit cd46dcb

Please sign in to comment.