Include the site setting file path for which a default value is missing.

This commit is contained in:
Guo Xiang Tan 2017-08-16 11:42:08 +09:00
parent ed851dbfff
commit 0b2d65f77a
1 changed files with 1 additions and 1 deletions

View File

@ -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)