Fix reported source for set_output/1 error (#1407)

This commit is contained in:
William Kral
2022-04-10 12:00:59 -07:00
parent 56681af1b6
commit 9e98f75495

View File

@@ -3987,7 +3987,7 @@ impl Machine {
)?;
if !stream.is_output_stream() {
let stub = functor_stub(atom!("set_input"), 1);
let stub = functor_stub(atom!("set_output"), 1);
let user_alias = atom_as_cell!(atom!("user"));
let err = self.machine_st.permission_error(