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:
authorDylan Griffith <dyl.griffith@gmail.com>2018-02-16 09:38:45 +0300
committerDylan Griffith <dyl.griffith@gmail.com>2018-02-16 11:47:44 +0300
commitbda4f0811e3d7f3530d1d6c338e2de6ada5bf1f2 (patch)
tree935b8b18311275a85dc2b069e90fb0a37b42a75d /lib/gitlab/profiler.rb
parent1192526b89f2a6a24bbe6a0abe12443450fef95d (diff)
Improve error handling for Gitlab::Profiler and improve doc about providing a user
Diffstat (limited to 'lib/gitlab/profiler.rb')
-rw-r--r--lib/gitlab/profiler.rb1
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