diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-05-28 13:41:04 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-31 10:56:41 +0200 |
commit | 5805e92299f91a8d849418a03ed0e6cbcbbb5568 (patch) | |
tree | 314431b777a0d59403e2cf86baf61469b0917f65 /lib/api/runners.rb | |
parent | 385f37a724f8c63f551e7236649a3f28058b860b (diff) | |
download | gitlab-ce-5805e92299f91a8d849418a03ed0e6cbcbbb5568.tar.gz |
Improve Runners API validations
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r-- | lib/api/runners.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb index d9a42960cb6..2b78075ddbf 100644 --- a/lib/api/runners.rb +++ b/lib/api/runners.rb @@ -136,7 +136,7 @@ module API if runner.assign_to(user_project) present runner, with: Entities::Runner else - conflict!("Runner was already enabled for this project") + render_validation_error!(runner) end end |