mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
rename default panic tag to roc panic tag
This commit is contained in:
parent
6d851ec5e2
commit
72ff0cc800
2 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@ pub unsafe fn roc_panic(c_ptr: *mut c_void, tag_id: u32) {
|
|||
use std::os::raw::c_char;
|
||||
|
||||
match PanicTagId::try_from(tag_id) {
|
||||
Ok(PanicTagId::NullTerminatedString) => {
|
||||
Ok(PanicTagId::RocPanic) => {
|
||||
let slice = CStr::from_ptr(c_ptr as *const c_char);
|
||||
let string = slice.to_str().unwrap();
|
||||
eprintln!("Roc hit a panic: {}", string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue