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
path: root/lib
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-11-08 12:05:19 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-11-08 12:05:19 +0300
commit659ef54605e37ba750486f25957ec367264dffd4 (patch)
tree01180ac95071bf8b12a5cbf9d85f580e542ecc65 /lib
parentc392b0cc24ba40e3fed920c6c693cb24665193af (diff)
API: Return 400 when creating a systemhook fails
Diffstat (limited to 'lib')
-rw-r--r--lib/api/system_hooks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/system_hooks.rb b/lib/api/system_hooks.rb
index 32f731c5652..b6bfff9f20f 100644
--- a/lib/api/system_hooks.rb
+++ b/lib/api/system_hooks.rb
@@ -32,7 +32,7 @@ module API
if hook.save
present hook, with: Entities::Hook
else
- not_found!
+ render_validation_error!(hook)
end
end