diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-11-08 12:05:19 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-11-08 12:05:19 +0300 |
commit | 659ef54605e37ba750486f25957ec367264dffd4 (patch) | |
tree | 01180ac95071bf8b12a5cbf9d85f580e542ecc65 /lib/api/system_hooks.rb | |
parent | c392b0cc24ba40e3fed920c6c693cb24665193af (diff) |
API: Return 400 when creating a systemhook fails
Diffstat (limited to 'lib/api/system_hooks.rb')
-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 |