Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
Replaced writeln to stderr with eprintln
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjay committed Aug 10, 2017
1 parent eadb014 commit 234eccd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bin/brain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ use brain::prelude;

macro_rules! exit_with_error(
($($arg:tt)*) => { {
writeln!(&mut ::std::io::stderr(), $($arg)*)
.expect("Failed while printing to stderr");
eprintln!($($arg)*);
process::exit(1);
} }
);
Expand Down

0 comments on commit 234eccd

Please sign in to comment.