diff options
author | Rémy Coutable <remy@rymai.me> | 2016-11-08 13:02:48 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-11-08 13:02:48 +0300 |
commit | 67ca15bb671be304330dd17d15a02c8c3563ce97 (patch) | |
tree | ecbe3c51cbd8e40a304d5bf7e43198c5aa610103 /lib/api | |
parent | 55e0065b49d63f53c40876196d8f110e4eb3ea32 (diff) | |
parent | 659ef54605e37ba750486f25957ec367264dffd4 (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.rb | 2 |
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 |