diff --git a/lib/singlepass-backend/src/protect_unix.rs b/lib/singlepass-backend/src/protect_unix.rs index 918df5346..30019db13 100644 --- a/lib/singlepass-backend/src/protect_unix.rs +++ b/lib/singlepass-backend/src/protect_unix.rs @@ -76,7 +76,7 @@ pub fn call_protected(f: impl FnOnce() -> T) -> RuntimeResult { *jmp_buf = prev_jmp_buf; if let Some(data) = TRAP_EARLY_DATA.with(|cell| cell.replace(None)) { - Err(RuntimeError::Panic { data }) + Err(RuntimeError::Error { data }) } else { let (faulting_addr, _inst_ptr) = CAUGHT_ADDRESSES.with(|cell| cell.get());