Error monitor should emit error to stderr instead of stdout

This commit is contained in:
Nick Cameron 2016-10-10 18:14:45 +13:00
parent 9d4d0da7af
commit 4df0f3f6a6

View file

@ -1110,7 +1110,7 @@ pub fn monitor<F: FnOnce() + Send + 'static>(f: F) {
errors::Level::Note);
}
println!("{}", str::from_utf8(&data.lock().unwrap()).unwrap());
writeln!(io::stderr(), "{}", str::from_utf8(&data.lock().unwrap()).unwrap()).unwrap();
}
exit_on_err();