diff options
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r-- | lib/gitlab_shell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index 842714e..abc5ac2 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -26,7 +26,7 @@ class GitlabShell end else user = api.discover(@key_id) - puts "Welcome to GitLab, #{user['name']}!" + puts "Welcome to GitLab, #{user && user['name'] || 'Anonymous'}!" end end |