Use standard error reporting for duplicate links

This commit is contained in:
Dave Machado 2017-07-12 12:17:52 -04:00
parent 17a0caf749
commit 263d095c65

View file

@ -21,7 +21,7 @@ fails = []
dup = links.select{|element| links.count(element) > 1}
if dup.uniq.length > 0
dup.uniq.each do |e|
fails.push("Duplicate link: #{e}")
fails.push("(DUP): #{e}")
end
end
# Remove any duplicates from array