summaryrefslogtreecommitdiff
path: root/lib/mattermost/presenter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mattermost/presenter.rb')
-rw-r--r--lib/mattermost/presenter.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mattermost/presenter.rb b/lib/mattermost/presenter.rb
index 7722022c658..d7455d39bce 100644
--- a/lib/mattermost/presenter.rb
+++ b/lib/mattermost/presenter.rb
@@ -4,7 +4,11 @@ module Mattermost
include Rails.application.routes.url_helpers
def authorize_chat_name(url)
- message = ":wave: Hi there! Before I do anything for you, please [connect your GitLab account](#{url})."
+ message = if url
+ ":wave: Hi there! Before I do anything for you, please [connect your GitLab account](#{url})."
+ else
+ ":sweat_smile: Couldn't identify you, nor can I autorize you!"
+ end
ephemeral_response(message)
end