Skip to content

Commit

Permalink
Merge pull request #199 from afifurrohman-id/eprintln-patch
Browse files Browse the repository at this point in the history
refactor(examples/ammonia-cat.rs): consider using `eprintln!` to write error to `stderr` instead of `stdout`
  • Loading branch information
notriddle authored Apr 10, 2024
2 parents a6b0de4 + e0db4f8 commit b93f1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ammonia-cat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn run() -> io::Result<()> {
fn main() {
env_logger::init();
if let Err(ref e) = run() {
println!("error: {}", e);
eprintln!("error: {e}");
process::exit(1);
}
}

0 comments on commit b93f1c6

Please sign in to comment.