Skip to content
Snippets Groups Projects
Commit 034e752a authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Handle InvalidIssueError as InvalidNoteError

parent 87ff0107
No related branches found
No related tags found
1 merge request!3363Implement #3243 New Issue by email
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment