]> git.seodisparate.com - mpd_info_screen/commitdiff
Output error lines
authorStephen Seo <seo.disparate@gmail.com>
Thu, 16 Sep 2021 07:33:40 +0000 (16:33 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 17 Sep 2021 03:33:09 +0000 (12:33 +0900)
src/main.rs

index 51ce422a091417ff8d6a4024fb782c6ef0b88370..37426a8a51f5f2d1b199886e68c1c56736bc3d27 100644 (file)
@@ -289,6 +289,8 @@ fn info_loop(shared_data: Arc<Mutex<Shared>>) -> 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 {