lib/config/validation/error.rb in config-5.2.0 vs lib/config/validation/error.rb in config-5.3.0
- old
+ new
@@ -1,7 +1,9 @@
+require_relative "../error"
+
module Config
module Validation
- class Error < StandardError
+ class Error < ::Config::Error
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")