Don't panic when repl code crashes

This commit is contained in:
Richard Feldman 2022-10-30 03:14:40 -04:00
parent 0190787f7b
commit 9ed13eb97b
No known key found for this signature in database
GPG Key ID: F1F21AA5B1D9E43B

View File

@ -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
}
}
}};
}