fix stream errors

This commit is contained in:
Mark Thom
2021-11-26 22:13:52 -07:00
parent d02b9d848c
commit 975c1ca62c
3 changed files with 3 additions and 6 deletions

View File

@@ -1369,9 +1369,7 @@ impl MachineState {
arity: usize,
) -> MachineStub {
let stub = functor_stub(caller, arity);
let payload = vec![stream_as_cell!(stream)];
let err = self.permission_error(perm, err_atom, payload);
let err = self.permission_error(perm, err_atom, stream_as_cell!(stream));
return self.error_form(err, stub);
}