Skip to content

Commit 6cdfcce

Browse files
committed
Fix Statement::interrupt() error handling
1 parent 644ab4d commit 6cdfcce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl Statement {
122122
pub fn js_interrupt(mut cx: FunctionContext) -> JsResult<JsNull> {
123123
let stmt: Handle<'_, JsBox<Statement>> = cx.this()?;
124124
let mut raw_stmt = stmt.stmt.blocking_lock();
125-
raw_stmt.interrupt();
125+
raw_stmt.interrupt().or_else(|err| throw_libsql_error(&mut cx, err))?;
126126
Ok(cx.null())
127127
}
128128

0 commit comments

Comments
 (0)