Exception: Konfig::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/konfig/errors.rb

Class Method Summary collapse

Class Method Details

.format(v_res) ⇒ Object



10
11
12
13
14
# File 'lib/konfig/errors.rb', line 10

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