BigW Consortium Gitlab

Commit 034e752a by Lin Jen-Shin

Handle InvalidIssueError as InvalidNoteError

parent 87ff0107
......@@ -39,7 +39,8 @@ class EmailReceiverWorker
reason = "You are not allowed to respond to the thread you are replying to. If you believe this is in error, contact a staff member."
when Gitlab::Email::Receiver::NoteableNotFoundError
reason = "The thread you are replying to no longer exists, perhaps it was deleted? If you believe this is in error, contact a staff member."
when Gitlab::Email::Receiver::InvalidNoteError
when Gitlab::Email::Receiver::InvalidNoteError,
Gitlab::Email::Receiver::InvalidIssueError
can_retry = true
reason = e.message
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment