diff --git a/lib/site_settings/type_supervisor.rb b/lib/site_settings/type_supervisor.rb index b33030c713b..da8f4c9a809 100644 --- a/lib/site_settings/type_supervisor.rb +++ b/lib/site_settings/type_supervisor.rb @@ -204,7 +204,7 @@ class SiteSettings::TypeSupervisor def validate_value(name, type, val) if type == self.class.types[:enum] if enum_class(name) - raise Discourse::InvalidParameters.new(:value) unless enum_class(name).valid_value?(val) + raise Discourse::InvalidParameters.new("Invalid `#{val}` value for `#{name}`") unless enum_class(name).valid_value?(val) else unless (choice = @choices[name]) raise Discourse::InvalidParameters.new(name)