From 9dfa38225fbb43a33274566ebbf19012293e711d Mon Sep 17 00:00:00 2001 From: Sijmen Date: Tue, 16 May 2023 02:02:21 +0200 Subject: [PATCH] Throw error when mpd returns an unexpected response --- src/mpd.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mpd.rs b/src/mpd.rs index 29b3ef7..6f52960 100644 --- a/src/mpd.rs +++ b/src/mpd.rs @@ -160,6 +160,7 @@ impl Mpd { break Err(anyhow!(buffer)); } else { println!("Unexpected MPD response {buffer}"); + break Err(anyhow!(buffer)); } } }