From 7fb39d1511565fa619ab1e106a06f5e985394624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Thu, 3 Nov 2016 12:00:26 +0100 Subject: [PATCH] Displaying errors on stderr (#3116) --- parity/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parity/main.rs b/parity/main.rs index 8fe752216..0fc88d8e7 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -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; @@ -213,7 +213,7 @@ fn main() { info!("{}", result); }, Err(err) => { - info!("{}", err); + writeln!(&mut stdio::stderr(), "{}", err).expect("StdErr available; qed"); process::exit(1); } }