lib/lita/default_configuration.rb in lita-4.2.1 vs lib/lita/default_configuration.rb in lita-4.3.0
- old
+ new
@@ -137,9 +137,14 @@
"must be one of: #{LOG_LEVELS.join(', ')}"
end
end
end
config :admins
+ config :error_handler, default: -> (_error) {} do
+ validate do |value|
+ "must respond to #call" unless value.respond_to?(:call)
+ end
+ end
end
end
end
end