diff options
author | Clyhtsuriva <61652557+clyhtsuriva@users.noreply.github.com> | 2021-06-28 15:53:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-28 15:53:35 +0000 |
commit | cb02b2327687b379103778dba28df7b1e37a756c (patch) | |
tree | f9674fe11fc7b5c6a4d275c5bf98f31783129495 /src/main/java/musichub | |
parent | 22d53407aa128c3e3019733ddcbd3bb6dd5541bf (diff) | |
parent | 70cd4d6cc54628277e77a47b86d00f7fc108a942 (diff) |
Merge pull request #18 from Said-Belhadj/hotfix/STZ-0018
Hotfix/STZ-0018
Diffstat (limited to 'src/main/java/musichub')
-rw-r--r-- | src/main/java/musichub/main/Main.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/musichub/main/Main.java b/src/main/java/musichub/main/Main.java index bbcae79..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; } @@ -258,6 +259,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(); |