use existence_error for dropped streams (#1472)

This commit is contained in:
Mark Thom
2022-05-23 11:15:58 -06:00
parent 7a9b71cc03
commit 084fc84590

View File

@@ -1343,6 +1343,12 @@ impl MachineState {
Ok(stream) Ok(stream)
}; };
} }
(ArenaHeaderTag::Dropped, _value) => {
let stub = functor_stub(caller, arity);
let err = self.existence_error(ExistenceError::Stream(addr));
return Err(self.error_form(err, stub));
}
_ => { _ => {
} }
); );