Skip to content

Commit ca9e988

Browse files
committed
Auto merge of #1510 - RalfJung:stderr, r=RalfJung
fix Stderr::as_file_handle error message
2 parents 99a57a3 + df31129 commit ca9e988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/posix/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl FileDescriptor for io::Stdout {
102102

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

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

0 commit comments

Comments
 (0)