diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2014-12-30 15:17:46 +0100 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2014-12-30 15:17:46 +0100 |
commit | 7240150c8986c7aa21d0eb3140ac9a4c7674a4d2 (patch) | |
tree | 6c992b9afd6c15605a5017d1ad2eea796d3e5d91 /lib/api/project_hooks.rb | |
parent | ed464edabeb62e35363ebadd0a5bb5ff394b6781 (diff) | |
download | gitlab-ce-7240150c8986c7aa21d0eb3140ac9a4c7674a4d2.tar.gz |
Forward the messages in api response.
Diffstat (limited to 'lib/api/project_hooks.rb')
-rw-r--r-- | lib/api/project_hooks.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/project_hooks.rb b/lib/api/project_hooks.rb index 7d056b9bf58..be9850367b9 100644 --- a/lib/api/project_hooks.rb +++ b/lib/api/project_hooks.rb @@ -53,7 +53,7 @@ module API if @hook.errors[:url].present? error!("Invalid url given", 422) end - not_found! + not_found!("Project hook #{@hook.errors.messages}") end end @@ -82,7 +82,7 @@ module API if @hook.errors[:url].present? error!("Invalid url given", 422) end - not_found! + not_found!("Project hook #{@hook.errors.messages}") end end |