Skip to content

Commit

Permalink
eprintln macro for error printing
Browse files Browse the repository at this point in the history
  • Loading branch information
coswat committed Oct 1, 2023
1 parent 06faf3b commit 4f27f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file-id/bin/file_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ fn print_file_id(path: &str) {
fn print_result(result: io::Result<FileId>) {
match result {
Ok(file_id) => println!("{file_id:?}"),
Err(error) => println!("Error: {error}"),
Err(error) => eprintln!("Error: {error}"),
}
}

0 comments on commit 4f27f04

Please sign in to comment.