BigW Consortium Gitlab

Commit 034e752a by Lin Jen-Shin

Handle InvalidIssueError as InvalidNoteError

parent 87ff0107
...@@ -39,7 +39,8 @@ class EmailReceiverWorker ...@@ -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." 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 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." 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 can_retry = true
reason = e.message reason = e.message
else 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