Commit 263d095c authored by Dave Machado's avatar Dave Machado
Browse files

Use standard error reporting for duplicate links

parent 17a0caf7
...@@ -21,7 +21,7 @@ fails = [] ...@@ -21,7 +21,7 @@ fails = []
dup = links.select{|element| links.count(element) > 1} dup = links.select{|element| links.count(element) > 1}
if dup.uniq.length > 0 if dup.uniq.length > 0
dup.uniq.each do |e| dup.uniq.each do |e|
fails.push("Duplicate link: #{e}") fails.push("(DUP): #{e}")
end end
end end
# Remove any duplicates from array # Remove any duplicates from array
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment