summaryrefslogtreecommitdiffhomepage
path: root/musicSorter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'musicSorter.rb')
-rw-r--r--musicSorter.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/musicSorter.rb b/musicSorter.rb
index a7ec6d1..73dcd8b 100644
--- a/musicSorter.rb
+++ b/musicSorter.rb
@@ -18,7 +18,7 @@ for extension in fileExtensions
songData = FFruby::File.new(song)
#Checks if any of the fields are not filled out
- #If they arent, save the song to an error log and skip it, except for track number
+ #If they arent, save the song to an error log and skip it
if songData.title == nil
errors.push("ERROR, TITLE IS NIL FOR: " + song)
next
@@ -36,7 +36,8 @@ for extension in fileExtensions
next
end
if songData.track == nil
- errors.push("WARNING, TRACK NUMBER IS NIL BUT MOVED ANYWAY FOR: " + song)
+ errors.push("ERROR, TRACK NUMBER IS FOR: " + song)
+ next
end
#Loads all the values we will want to use