Pre: Fix error printing rusqlite::Error.

This commit is contained in:
Nick Alexander 2018-06-29 14:40:56 -07:00
parent da599c3a78
commit 8725bad18c
4 changed files with 4 additions and 4 deletions

View file

@ -293,6 +293,6 @@ pub enum DbErrorKind {
// It would be better to capture the underlying `rusqlite::Error`, but that type doesn't
// implement many useful traits, including `Clone`, `Eq`, and `PartialEq`.
#[fail(display = "SQL error: _0")]
#[fail(display = "SQL error: {}", _0)]
RusqliteError(String),
}

View file

@ -64,7 +64,7 @@ pub enum ProjectorError {
// It would be better to capture the underlying `rusqlite::Error`, but that type doesn't
// implement many useful traits, including `Clone`, `Eq`, and `PartialEq`.
#[fail(display = "SQL error: _0")]
#[fail(display = "SQL error: {}", _0)]
RusqliteError(String),
#[fail(display = "{}", _0)]

View file

@ -86,7 +86,7 @@ pub enum MentatError {
// It would be better to capture the underlying `rusqlite::Error`, but that type doesn't
// implement many useful traits, including `Clone`, `Eq`, and `PartialEq`.
#[fail(display = "SQL error: _0")]
#[fail(display = "SQL error: {}", _0)]
RusqliteError(String),
#[fail(display = "{}", _0)]

View file

@ -53,7 +53,7 @@ pub enum TolstoyError {
// It would be better to capture the underlying `rusqlite::Error`, but that type doesn't
// implement many useful traits, including `Clone`, `Eq`, and `PartialEq`.
#[fail(display = "SQL error: _0")]
#[fail(display = "SQL error: {}", _0)]
RusqliteError(String),
#[fail(display = "{}", _0)]