Skip to content

Commit

Permalink
Merge pull request #1378 from tursodatabase/better_errors
Browse files Browse the repository at this point in the history
Improve errors for local db
  • Loading branch information
haaawk authored Jul 25, 2024
2 parents b60cad7 + c2e937f commit c5bb607
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libsql/src/local/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ impl Connection {
match err {
ffi::SQLITE_OK => {}
_ => {
return Err(Error::ConnectionFailed(db_path));
return Err(Error::ConnectionFailed(format!(
"Unable to open connection to local database {db_path}: {err}",
)));
}
}

Expand Down

0 comments on commit c5bb607

Please sign in to comment.