mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Use existing message instead of ffi::code_to_str
in Error trait
This commit is contained in:
parent
21e0a5493d
commit
7a430c0fde
@ -108,7 +108,7 @@ impl fmt::Display for SqliteError {
|
|||||||
|
|
||||||
impl error::Error for SqliteError {
|
impl error::Error for SqliteError {
|
||||||
fn description(&self) -> &str {
|
fn description(&self) -> &str {
|
||||||
ffi::code_to_str(self.code)
|
self.message.as_slice()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user