From 80da9a55995aff5b838a01da03e8ed7847d10c19 Mon Sep 17 00:00:00 2001 From: DaXcess Date: Thu, 17 Oct 2024 14:35:15 +0200 Subject: [PATCH] [fix] Change session errors to be transparent --- spoticord_session/src/error.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spoticord_session/src/error.rs b/spoticord_session/src/error.rs index 964a997..6784cd7 100644 --- a/spoticord_session/src/error.rs +++ b/spoticord_session/src/error.rs @@ -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), }