mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
Log some useful info when raising ReplyUserNotMatchingError
This commit is contained in:
parent
e01dc54f2a
commit
eaf111f3e1
@ -126,7 +126,9 @@ module Email
|
|||||||
when :reply
|
when :reply
|
||||||
email_log = destination[:obj]
|
email_log = destination[:obj]
|
||||||
|
|
||||||
raise ReplyUserNotMatchingError if email_log.user_id != user.id
|
if email_log.user_id != user.id
|
||||||
|
raise ReplyUserNotMatchingError, "email_log.user_id => #{email_log.user_id.inspect}, user.id => #{user.id.inspect}"
|
||||||
|
end
|
||||||
|
|
||||||
create_reply(user: user,
|
create_reply(user: user,
|
||||||
raw: body,
|
raw: body,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user