change behaviour in supposedly unreachable cases

This commit is contained in:
Bennet Bleßmann
2025-07-26 13:14:29 +02:00
committed by Bennet Bleßmann
parent d2ffd4f4bf
commit dc495f10f8
2 changed files with 15 additions and 3 deletions

View File

@@ -601,6 +601,15 @@ impl MachineState {
}
}
pub(super) fn unreachable_error(&self) -> MachineError {
let stub = functor!(atom!("system_error"));
MachineError {
stub,
location: None,
}
}
#[cfg(feature = "ffi")]
pub(super) fn ffi_error(&self, err: FFIError) -> MachineError {
let error_atom = match err {