mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 00:09:33 +03:00
Don't panic when repl code crashes
This commit is contained in:
parent
0190787f7b
commit
9ed13eb97b
@ -120,7 +120,11 @@ macro_rules! run_jit_function {
|
||||
|
||||
$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…
Reference in New Issue
Block a user