mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +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:
parent
2742595b00
commit
123107c28f
5 changed files with 29 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue