Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-04-07 00:27:28 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-05-17 00:27:16 +0300
commit8156475ea501221c3ba1bf3280e8368b354839bc (patch)
treecd54d29751e40ab8423bf8cdf324a7548f73acf4 /app/workers/email_receiver_worker.rb
parent30b34437795eec6f55fb269cb6eff4a4f9da9cfc (diff)
Report better errors. TODO: Enable skipped test
Diffstat (limited to 'app/workers/email_receiver_worker.rb')
-rw-r--r--app/workers/email_receiver_worker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/email_receiver_worker.rb b/app/workers/email_receiver_worker.rb
index 64105dbc01d..544b23da85e 100644
--- a/app/workers/email_receiver_worker.rb
+++ b/app/workers/email_receiver_worker.rb
@@ -26,6 +26,8 @@ class EmailReceiverWorker
case e
when Gitlab::Email::Receiver::SentNotificationNotFoundError
reason = "We couldn't figure out what the email is in reply to. Please create your comment through the web interface."
+ when Gitlab::Email::Receiver::ProjectNotFound
+ reason = "We couldn't find the project. Please check if there's any typo."
when Gitlab::Email::Receiver::EmptyEmailError
can_retry = true
reason = "It appears that the email is blank. Make sure your reply is at the top of the email, we can't process inline replies."