diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-05-23 20:19:20 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-05-23 20:23:07 +0300 |
commit | 1f5d55907a05fefbda17f7a4f45f58f2b522aee2 (patch) | |
tree | bae95bb6397663ee0d2144856b435a4908ea6033 /app/workers/email_receiver_worker.rb | |
parent | 863d8e5ae55debc08bf095354aee0a63417624fc (diff) |
Merge the places where exceptions could be raised
Diffstat (limited to 'app/workers/email_receiver_worker.rb')
-rw-r--r-- | app/workers/email_receiver_worker.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/email_receiver_worker.rb b/app/workers/email_receiver_worker.rb index af9006d8dde..68081643113 100644 --- a/app/workers/email_receiver_worker.rb +++ b/app/workers/email_receiver_worker.rb @@ -24,6 +24,8 @@ class EmailReceiverWorker reason = nil case e + when Gitlab::Email::UnknownIncomingEmail + reason = "We couldn't figure out what the email is for." when Gitlab::Email::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::ProjectNotFound |