mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
Merge pull request #4273 from mpalmer/log-useful-info-replyusernotmatchingerror
Log some useful info when raising ReplyUserNotMatchingError
This commit is contained in:
commit
fde5ef4902
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue