singular/plural phrasing in audit report

Closes Homebrew/homebrew#40395.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Baptiste Fontaine 2015-06-05 02:34:28 +02:00
parent df7dd903cd
commit d87f9d4359

View File

@ -46,7 +46,9 @@ module Homebrew
end end
unless problem_count.zero? unless problem_count.zero?
ofail "#{problem_count} problems in #{formula_count} formulae" problems = "problem" + plural(problem_count)
formulae = "formula" + plural(formula_count, "e")
ofail "#{problem_count} #{problems} in #{formula_count} #{formulae}"
end end
end end
end end