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

Commit

Permalink
Displaying errors on stderr (#3116)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusdrw authored and gavofyork committed Nov 3, 2016
1 parent 5ae737f commit 7fb39d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parity/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ mod user_defaults;
mod stratum;

use std::{process, env};
use std::io::BufReader;
use std::io::{self as stdio, BufReader, Write};
use std::fs::File;
use util::sha3::sha3;
use cli::Args;
Expand Down Expand Up @@ -213,7 +213,7 @@ fn main() {
info!("{}", result);
},
Err(err) => {
info!("{}", err);
writeln!(&mut stdio::stderr(), "{}", err).expect("StdErr available; qed");
process::exit(1);
}
}
Expand Down

0 comments on commit 7fb39d1

Please sign in to comment.