Skip to content

Commit 7bc36d6

Browse files
committed
Correct name of each shim when erroring
1 parent cd495cb commit 7bc36d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/shims/io.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
9292
let this = self.eval_context_mut();
9393

9494
if !this.machine.communicate {
95-
throw_unsup_format!("`open` not available when isolation is enabled")
95+
throw_unsup_format!("`fcntl` not available when isolation is enabled")
9696
}
9797

9898
let fd = this.read_scalar(fd_op)?.to_i32()?;
@@ -125,7 +125,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
125125
let this = self.eval_context_mut();
126126

127127
if !this.machine.communicate {
128-
throw_unsup_format!("`open` not available when isolation is enabled")
128+
throw_unsup_format!("`close` not available when isolation is enabled")
129129
}
130130

131131
let fd = this.read_scalar(fd_op)?.to_i32()?;
@@ -145,7 +145,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
145145
let this = self.eval_context_mut();
146146

147147
if !this.machine.communicate {
148-
throw_unsup_format!("`open` not available when isolation is enabled")
148+
throw_unsup_format!("`read` not available when isolation is enabled")
149149
}
150150

151151
let tcx = &{ this.tcx.tcx };

0 commit comments

Comments
 (0)