mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
WIP send panics to the repl more gracefully
This commit is contained in:
parent
45e800c328
commit
a36ddbf6cb
5 changed files with 31 additions and 14 deletions
|
@ -118,9 +118,9 @@ macro_rules! run_jit_function {
|
|||
// only if there are no exceptions thrown, check for errors
|
||||
assert!($errors.is_empty(), "Encountered errors:\n{}", $errors);
|
||||
|
||||
$transform(success)
|
||||
Ok($transform(success))
|
||||
}
|
||||
Err(error_msg) => panic!("Roc failed with message: {}", error_msg),
|
||||
Err(error_msg) => Err(error_msg.to_string()),
|
||||
}
|
||||
}};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue