summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-07-05 12:03:59 +0000
committerStan Hu <stanhu@gmail.com>2016-07-05 12:03:59 +0000
commit011317c8c1c7678ab88eb8a8673347587fd3236d (patch)
treeaf16c190a26cd00cb0b625115aa9e5cfef6e0ff1
parent710746ff1e6762f5072c6ae6443fd3ad75169bc1 (diff)
parent5e83dbdcc3ba840eab62d9056ba4f73ec60572dd (diff)
downloadgitlab-shell-011317c8c1c7678ab88eb8a8673347587fd3236d.tar.gz
Merge branch 'user_stderr' into 'master'
Use STDERR to output error messages It's pretty minor change so I don't think we need a changelog item for this. Fixes https://gitlab.com/gitlab-org/gitlab-shell/issues/47 See merge request !68
-rw-r--r--lib/gitlab_post_receive.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab_post_receive.rb b/lib/gitlab_post_receive.rb
index 4b80174..ebcf317 100644
--- a/lib/gitlab_post_receive.rb
+++ b/lib/gitlab_post_receive.rb
@@ -82,10 +82,10 @@ class GitlabPostReceive
begin
GitlabNet.new.redis_client.rpush(queue, msg)
- return true
+ true
rescue => e
- puts "GitLab: An unexpected error occurred in writing to Redis: #{e}"
- return false
+ $stderr.puts "GitLab: An unexpected error occurred in writing to Redis: #{e}"
+ false
end
end
end