Skip to content

Commit c5bb607

Browse files
authored
Merge pull request #1378 from tursodatabase/better_errors
Improve errors for local db
2 parents b60cad7 + c2e937f commit c5bb607

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libsql/src/local/connection.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ impl Connection {
5252
match err {
5353
ffi::SQLITE_OK => {}
5454
_ => {
55-
return Err(Error::ConnectionFailed(db_path));
55+
return Err(Error::ConnectionFailed(format!(
56+
"Unable to open connection to local database {db_path}: {err}",
57+
)));
5658
}
5759
}
5860

0 commit comments

Comments
 (0)