Skip to content

Commit

Permalink
Error monitor should emit error to stderr instead of stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
nrc committed Oct 10, 2016
1 parent 9d4d0da commit 4df0f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_driver/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4df0f3f

Please sign in to comment.