UX: Add group name to error message (#11333)

The group name used to be part of the error message, but was removed
in a past commit.
This commit is contained in:
Dan Ungureanu
2020-11-24 13:06:52 +02:00
committed by GitHub
parent 2742595b00
commit 123107c28f
5 changed files with 29 additions and 1 deletions

View File

@ -142,6 +142,7 @@ module Discourse
attr_reader :obj
attr_reader :opts
attr_reader :custom_message
attr_reader :custom_message_params
attr_reader :group
def initialize(msg = nil, obj = nil, opts = nil)
@ -150,6 +151,7 @@ module Discourse
@opts = opts || {}
@obj = obj
@custom_message = opts[:custom_message] if @opts[:custom_message]
@custom_message_params = opts[:custom_message_params] if @opts[:custom_message_params]
@group = opts[:group] if @opts[:group]
end
end