From 7a430c0fde58be3598f4118f82325be491362750 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Fri, 13 Feb 2015 15:48:11 -0500 Subject: [PATCH] Use existing message instead of `ffi::code_to_str` in Error trait --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 24ad3cf..2efedb7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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() } }