From 217125eaee3e2fa5065752aa366aea570488b729 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 16 Sep 2021 16:33:40 +0900 Subject: [PATCH] Output error lines --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.49.0