From 20e690428d097047fbf92d97e7ed0009d56de873 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Mon, 28 Jun 2021 17:44:20 +0200 Subject: Added a break at the end of the r command. --- src/main/java/musichub/main/Main.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main/java/musichub/main/Main.java b/src/main/java/musichub/main/Main.java index bbcae79..2949d9e 100644 --- a/src/main/java/musichub/main/Main.java +++ b/src/main/java/musichub/main/Main.java @@ -258,6 +258,7 @@ public class Main { System.err.println(e.getMessage()+" Please create a file with the extension .wav inside the song folder at root of the app"); } printAvailableCommands(); + break; case 'o': //consult the app logs LogHandler.read(); -- cgit v1.2.3 From 70cd4d6cc54628277e77a47b86d00f7fc108a942 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Mon, 28 Jun 2021 17:49:20 +0200 Subject: Change out to err for the path verification error message. --- src/main/java/musichub/main/Main.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/musichub/main/Main.java b/src/main/java/musichub/main/Main.java index 2949d9e..674cc7b 100644 --- a/src/main/java/musichub/main/Main.java +++ b/src/main/java/musichub/main/Main.java @@ -99,7 +99,8 @@ public class Main { if (!isPathValid(content)) { String logMsg = "The music file was not found with the path you've provided or the extension is not .wav"; LogHandler.write(logMsg, "WARNING"); //write a line in the log file - System.out.println(logMsg + "\nType h for available commands"); + System.err.println(logMsg); + System.out.println("Type h for available commands"); choice = scan.nextLine(); break; } -- cgit v1.2.3