summaryrefslogtreecommitdiff
path: root/lib/api/system_hooks.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-11-08 10:05:19 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2016-11-08 10:05:19 +0100
commit659ef54605e37ba750486f25957ec367264dffd4 (patch)
tree01180ac95071bf8b12a5cbf9d85f580e542ecc65 /lib/api/system_hooks.rb
parentc392b0cc24ba40e3fed920c6c693cb24665193af (diff)
downloadgitlab-ce-659ef54605e37ba750486f25957ec367264dffd4.tar.gz
API: Return 400 when creating a systemhook fails
Diffstat (limited to 'lib/api/system_hooks.rb')
-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