Skip to content

Commit 1c721fe

Browse files
committed
Better panic message
1 parent 3654d44 commit 1c721fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/duckdb/src/raw_statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl RawStatement {
7171

7272
#[inline]
7373
pub fn result_unwrap(&self) -> ffi::duckdb_arrow {
74-
self.result.unwrap()
74+
self.result.expect("The statement was not executed yet")
7575
}
7676

7777
#[inline]

0 commit comments

Comments
 (0)