core: Expand on audio related error messages
This commit is contained in:
parent
fe8dae29b5
commit
618e061564
|
@ -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:?}")]
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Reference in New Issue