Throw error when mpd returns an unexpected response
This commit is contained in:
parent
62651ea80b
commit
9dfa38225f
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue