mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
database: Add error for missing items
This commit is contained in:
parent
d9746c8ab4
commit
ac14beb665
4 changed files with 21 additions and 46 deletions
|
|
@ -10,6 +10,9 @@ pub enum Error {
|
|||
#[error(transparent)]
|
||||
QueryError(#[from] diesel::result::Error),
|
||||
|
||||
#[error("Missing item dependency ({0} {1})")]
|
||||
MissingItem(&'static str, String),
|
||||
|
||||
#[error(transparent)]
|
||||
SendError(#[from] std::sync::mpsc::SendError<super::thread::Action>),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue