summaryrefslogtreecommitdiff
path: root/lib/api/ci/runner.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-10 18:09:05 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-10 18:09:05 +0000
commit20a86e7f6fd58882025b1c85b21e891d75220da5 (patch)
tree31d400a3790b2b3650415e5caf1cabfbe8d9092e /lib/api/ci/runner.rb
parent04ac4180cb5ba0df460034c7e64862056fd498b3 (diff)
downloadgitlab-ce-20a86e7f6fd58882025b1c85b21e891d75220da5.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/ci/runner.rb')
-rw-r--r--lib/api/ci/runner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/ci/runner.rb b/lib/api/ci/runner.rb
index fcf283491ca..d8f4b228797 100644
--- a/lib/api/ci/runner.rb
+++ b/lib/api/ci/runner.rb
@@ -53,7 +53,7 @@ module API
result = ::Ci::Runners::RegisterRunnerService.new(params[:token], attributes).execute
@runner = result.success? ? result.payload[:runner] : nil
- forbidden! unless @runner
+ forbidden!(result.message) unless @runner
if @runner.persisted?
present @runner, with: Entities::Ci::RunnerRegistrationDetails