diff --git a/boltconn/src/intercept/script_engine.rs b/boltconn/src/intercept/script_engine.rs index a708d05..5e022d3 100644 --- a/boltconn/src/intercept/script_engine.rs +++ b/boltconn/src/intercept/script_engine.rs @@ -152,7 +152,7 @@ impl ScriptEngine { status, body, }; - let r = match ctx.with(|ctx| -> Result { + let eval_result = ctx.with(|ctx| -> Result { // init console let cls = Class::instance( ctx.clone(), @@ -186,7 +186,8 @@ impl ScriptEngine { Err(e) } } - }) { + }); + let r = match eval_result { Err(e) => { tracing::warn!( "Failed to run script {} for {}: {}",