Unwrap error when caught.

This commit is contained in:
Stephen Chung
2022-02-08 19:02:40 +08:00
parent 7686ca619a
commit 83b213b086
4 changed files with 25 additions and 4 deletions

View File

@@ -715,8 +715,8 @@ impl Engine {
Err(err) if err.is_pseudo_error() => Err(err),
Err(err) if !err.is_catchable() => Err(err),
Err(mut err) => {
let err_value = match *err {
ERR::ErrorRuntime(ref x, ..) => x.clone(),
let err_value = match err.unwrap_inner() {
ERR::ErrorRuntime(x, ..) => x.clone(),
#[cfg(feature = "no_object")]
_ => {