Use existing message instead of ffi::code_to_str in Error trait

This commit is contained in:
John Gallagher 2015-02-13 15:48:11 -05:00
parent 21e0a5493d
commit 7a430c0fde

View File

@ -108,7 +108,7 @@ impl fmt::Display for SqliteError {
impl error::Error for SqliteError {
fn description(&self) -> &str {
ffi::code_to_str(self.code)
self.message.as_slice()
}
}