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/api
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-11-08 13:02:48 +0300
committerRémy Coutable <remy@rymai.me>2016-11-08 13:02:48 +0300
commit67ca15bb671be304330dd17d15a02c8c3563ce97 (patch)
treeecbe3c51cbd8e40a304d5bf7e43198c5aa610103 /lib/api
parent55e0065b49d63f53c40876196d8f110e4eb3ea32 (diff)
parent659ef54605e37ba750486f25957ec367264dffd4 (diff)
Merge branch 'fix-systemhook-api' into 'master'
API: Return 400 when creating a systemhook fails Closes #23335 See merge request !7350
Diffstat (limited to 'lib/api')
-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