Skip to content

Commit

Permalink
Improve VersionMismatch error message
Browse files Browse the repository at this point in the history
The current error is a bit unclear, so added some clarification of which version is which.
  • Loading branch information
nyurik committed Dec 17, 2023
1 parent aeaacc4 commit 017d91d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libsqlite3-sys/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ impl ::std::fmt::Display for InitError {
compile_time,
runtime,
} => {
write!(f, "SQLite version mismatch: {runtime} < {compile_time}")
write!(
f,
"SQLite version mismatch: runtime v{runtime} < compiled v{compile_time}"
)
}
InitError::NullFunctionPointer => {
write!(f, "Some sqlite3_api_routines fields are null")
Expand Down

0 comments on commit 017d91d

Please sign in to comment.