From 0fd55acf84b3cd8a76d3efa569e8209633deb646 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 17 Jun 2021 16:16:04 +0200 Subject: [PATCH] Update lib/site_settings/type_supervisor.rb Co-authored-by: David Taylor --- lib/site_settings/type_supervisor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/site_settings/type_supervisor.rb b/lib/site_settings/type_supervisor.rb index da8f4c9a809..88d07a34740 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("Invalid `#{val}` value for `#{name}`") unless enum_class(name).valid_value?(val) + raise Discourse::InvalidParameters.new("Invalid value `#{val}` for `#{name}`") unless enum_class(name).valid_value?(val) else unless (choice = @choices[name]) raise Discourse::InvalidParameters.new(name)