Revert "send panics to the repl more gracefully"

Now doesn't seem like the right time to do a change this invasive.

This reverts commit a36ddbf6cb.
This commit is contained in:
Richard Feldman 2022-10-30 03:12:53 -04:00
parent a36ddbf6cb
commit 0190787f7b
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
5 changed files with 14 additions and 31 deletions

View file

@ -107,11 +107,7 @@ impl<'a> ReplApp<'a> for CliApp {
/// Run user code that returns a type with a `Builtin` layout
/// Size of the return value is statically determined from its Rust type
fn call_function<Return, F>(
&mut self,
main_fn_name: &str,
mut transform: F,
) -> Result<Expr<'a>, String>
fn call_function<Return, F>(&mut self, main_fn_name: &str, mut transform: F) -> Expr<'a>
where
F: FnMut(&'a Self::Memory, Return) -> Expr<'a>,
Self::Memory: 'a,