mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Log some useful info when raising ReplyUserNotMatchingError
This commit is contained in:
@@ -126,7 +126,9 @@ module Email
|
||||
when :reply
|
||||
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,
|
||||
raw: body,
|
||||
|
||||
Reference in New Issue
Block a user