Throw error when mpd returns an unexpected response

This commit is contained in:
Sijmen 2023-05-16 02:02:21 +02:00
parent 62651ea80b
commit 9dfa38225f
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48

View file

@ -160,6 +160,7 @@ impl Mpd {
break Err(anyhow!(buffer)); break Err(anyhow!(buffer));
} else { } else {
println!("Unexpected MPD response {buffer}"); println!("Unexpected MPD response {buffer}");
break Err(anyhow!(buffer));
} }
} }
} }