summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-05-03 13:42:56 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-05-03 13:42:56 +0200
commit6957fb7c4f0993ba1e0cbd9949a7e96c2c2def32 (patch)
treed74e17f51a4dce1e77d46a0b308cca30be1ff072
parent23a3e3756a4f44aa8bd69310a2e584c1d4f7af1d (diff)
downloadgitlab-ce-6957fb7c4f0993ba1e0cbd9949a7e96c2c2def32.tar.gz
Always mention HTTP status
-rw-r--r--app/controllers/projects/hooks_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/hooks_controller.rb b/app/controllers/projects/hooks_controller.rb
index 9869d90831c..47524b1cf0b 100644
--- a/app/controllers/projects/hooks_controller.rb
+++ b/app/controllers/projects/hooks_controller.rb
@@ -28,7 +28,7 @@ class Projects::HooksController < Projects::ApplicationController
status, message = TestHookService.new.execute(hook, current_user)
if status && status >= 200 && status < 400
- flash[:notice] = "Hook executed successfully"
+ flash[:notice] = "Hook executed successfully: HTTP #{status}"
elsif status
flash[:alert] = "Hook executed successfully but returned HTTP #{status} #{message}"
else