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