Skip to content

Commit

Permalink
Auto merge of #1510 - RalfJung:stderr, r=RalfJung
Browse files Browse the repository at this point in the history
fix Stderr::as_file_handle error message
  • Loading branch information
bors committed Aug 13, 2020
2 parents 99a57a3 + df31129 commit ca9e988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shims/posix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl FileDescriptor for io::Stdout {

impl FileDescriptor for io::Stderr {
fn as_file_handle<'tcx>(&self) -> InterpResult<'tcx, &FileHandle> {
throw_unsup_format!("stdout cannot be used as FileHandle");
throw_unsup_format!("stderr cannot be used as FileHandle");
}

fn read<'tcx>(&mut self, _communicate_allowed: bool, _bytes: &mut [u8]) -> InterpResult<'tcx, io::Result<usize>> {
Expand Down

0 comments on commit ca9e988

Please sign in to comment.