We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 644ab4d commit 6cdfcceCopy full SHA for 6cdfcce
src/statement.rs
@@ -122,7 +122,7 @@ impl Statement {
122
pub fn js_interrupt(mut cx: FunctionContext) -> JsResult<JsNull> {
123
let stmt: Handle<'_, JsBox<Statement>> = cx.this()?;
124
let mut raw_stmt = stmt.stmt.blocking_lock();
125
- raw_stmt.interrupt();
+ raw_stmt.interrupt().or_else(|err| throw_libsql_error(&mut cx, err))?;
126
Ok(cx.null())
127
}
128
0 commit comments