Exception: Config::Validation::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/config/validation/error.rb

Class Method Summary collapse

Class Method Details

.format(v_res) ⇒ Object



5
6
7
8
9
# File 'lib/config/validation/error.rb', line 5

def self.format(v_res)
  v_res.errors.group_by(&:path).map do |path, messages|
    "#{' ' * 2}#{path.join('.')}: #{messages.map(&:text).join('; ')}"
  end.join("\n")
end