Skip to content

Commit

Permalink
[fix] Change session errors to be transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
DaXcess committed Oct 17, 2024
1 parent 0292e83 commit 80da9a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spoticord_session/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ pub enum Error {
#[error("Cannot perform this action on an active session")]
AlreadyActive,

#[error("{0}")]
#[error(transparent)]
Serenity(#[from] serenity::Error),

#[error("{0}")]
#[error(transparent)]
Database(#[from] spoticord_database::error::DatabaseError),

#[error("{0}")]
#[error(transparent)]
JoinError(#[from] songbird::error::JoinError),

#[error("{0}")]
#[error(transparent)]
Librespot(#[from] librespot::core::Error),
}

Expand Down

0 comments on commit 80da9a5

Please sign in to comment.