Pre: Fix error printing rusqlite::Error.
This commit is contained in:
parent
da599c3a78
commit
8725bad18c
4 changed files with 4 additions and 4 deletions
|
@ -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),
|
||||
}
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue