mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:51:14 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user