core: Expand on audio related error messages

This commit is contained in:
Nathan Adams 2024-06-01 13:55:39 +02:00
parent fe8dae29b5
commit 618e061564
2 changed files with 3 additions and 3 deletions

View File

@ -24,10 +24,10 @@ use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[cfg(feature = "mp3")]
#[error("Couldn't decode MP3")]
#[error("Couldn't decode MP3: {0}")]
InvalidMp3(#[from] mp3::Error),
#[error("Couldn't decode ADPCM")]
#[error("Couldn't decode ADPCM: {0}")]
InvalidAdpcm(#[from] adpcm::Error),
#[error("Unhandled compression {0:?}")]

View File

@ -12,7 +12,7 @@ use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("Couldn't decode MP3 frame")]
#[error("Couldn't decode MP3 frame: {0}")]
FrameDecode(#[from] errors::Error),
#[error("No default track")]