Skip to content

Commit d615233

Browse files
committed
clarify message printed by roc_alloc when out of memory
1 parent ef62902 commit d615233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nea/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pub unsafe extern "C" fn roc_panic(message_ptr: *const i8, panic_tag: u32) -> !
7878
let message_cstr = unsafe { std::ffi::CStr::from_ptr(message_ptr) };
7979
let message = message_cstr.to_str().unwrap();
8080

81-
eprintln!("thread {thread_id:?} hit a panic {panic_tag}: {message}");
81+
eprintln!("thread {thread_id:?} called roc_panic {panic_tag}: {message}");
8282

8383
let jmp_buf = JMP_BUFFER.with_borrow(|jmp_buf| *jmp_buf);
8484
unsafe { longjmp(&jmp_buf, 1) }

0 commit comments

Comments
 (0)