mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-13 23:36:29 +00:00
Don't panic when repl code crashes
This commit is contained in:
parent
0190787f7b
commit
9ed13eb97b
1 changed files with 5 additions and 1 deletions
|
@ -120,7 +120,11 @@ macro_rules! run_jit_function {
|
||||||
|
|
||||||
$transform(success)
|
$transform(success)
|
||||||
}
|
}
|
||||||
Err(error_msg) => panic!("Roc failed with message: {}", error_msg),
|
Err(error_msg) => {
|
||||||
|
eprintln!("This Roc code crashed with: \"{}\"", error_msg);
|
||||||
|
|
||||||
|
Expr::MalformedClosure
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue