mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Report actual error when DbError occurs
This commit is contained in:
parent
44c5fbac51
commit
c447999b4a
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ use snafu::Snafu;
|
||||||
use super::AnkiError;
|
use super::AnkiError;
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq, Snafu)]
|
#[derive(Debug, PartialEq, Eq, Snafu)]
|
||||||
|
#[snafu(display("{kind:?}: {info}"))]
|
||||||
pub struct DbError {
|
pub struct DbError {
|
||||||
pub info: String,
|
pub info: String,
|
||||||
pub kind: DbErrorKind,
|
pub kind: DbErrorKind,
|
||||||
|
|
Loading…
Reference in a new issue