Skip to content

Commit

Permalink
refactor: Update ammonia-cat.rs, consider using eprintln! to write …
Browse files Browse the repository at this point in the history
…error to stderr instead stdout
  • Loading branch information
afifurrohman-id authored Apr 10, 2024
1 parent a6b0de4 commit 2e85767
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 2e85767

Please sign in to comment.