Include the site setting file path for which a default value is missing.
This commit is contained in:
parent
ed851dbfff
commit
0b2d65f77a
|
@ -15,7 +15,7 @@ class SiteSettings::YamlLoader
|
|||
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`."
|
||||
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
|
||||
|
||||
if hash['hidden']&.is_a?(Hash)
|
||||
|
|
Loading…
Reference in New Issue