diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-02-16 17:38:45 +1100 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-02-16 19:47:44 +1100 |
commit | bda4f0811e3d7f3530d1d6c338e2de6ada5bf1f2 (patch) | |
tree | 935b8b18311275a85dc2b069e90fb0a37b42a75d /lib | |
parent | 1192526b89f2a6a24bbe6a0abe12443450fef95d (diff) | |
download | gitlab-ce-bda4f0811e3d7f3530d1d6c338e2de6ada5bf1f2.tar.gz |
Improve error handling for Gitlab::Profiler and improve doc about providing a userupdate-profiler-docs-explaining-how-to-provide-user
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/profiler.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/profiler.rb b/lib/gitlab/profiler.rb index 95d94b3cc68..98a168b43bb 100644 --- a/lib/gitlab/profiler.rb +++ b/lib/gitlab/profiler.rb @@ -45,6 +45,7 @@ module Gitlab if user private_token ||= user.personal_access_tokens.active.pluck(:token).first + raise 'Your user must have a personal_access_token' unless private_token end headers['Private-Token'] = private_token if private_token |