From: Stephen Seo Date: Thu, 16 Sep 2021 07:33:40 +0000 (+0900) Subject: Output error lines X-Git-Tag: 0.1.0~24 X-Git-Url: https://git.seodisparate.com/stephenseo/client_config?a=commitdiff_plain;h=217125eaee3e2fa5065752aa366aea570488b729;p=mpd_info_screen Output error lines --- diff --git a/src/main.rs b/src/main.rs index 51ce422..37426a8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -289,6 +289,8 @@ fn info_loop(shared_data: Arc>) -> Result<(), String> { //println!("Got response: {}", line); if line.starts_with("OK") { break; + } else if line.starts_with("ACK") { + println!("ERROR: {}", line); } else if line.starts_with("file: ") { let song_file = line.split_off(6); if song_file != lock.current_song {