mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
Include the site setting file path for which a default value is missing.
This commit is contained in:
@ -15,7 +15,7 @@ class SiteSettings::YamlLoader
|
|||||||
if value.is_a?(Hash)
|
if value.is_a?(Hash)
|
||||||
raise Discourse::Deprecation, "The site setting `#{setting_name}` can no longer be set based on Rails environment. See also `config/environments/<env>.rb`."
|
raise Discourse::Deprecation, "The site setting `#{setting_name}` can no longer be set based on Rails environment. See also `config/environments/<env>.rb`."
|
||||||
elsif value.nil?
|
elsif value.nil?
|
||||||
raise StandardError, "The site setting `#{setting_name}` is missing default value."
|
raise StandardError, "The site setting `#{setting_name}` in '#{@file}' is missing default value."
|
||||||
end
|
end
|
||||||
|
|
||||||
if hash['hidden']&.is_a?(Hash)
|
if hash['hidden']&.is_a?(Hash)
|
||||||
|
Reference in New Issue
Block a user