diff options
author | Valery Sizov <valery@gitlab.com> | 2016-07-05 09:50:37 +0000 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-07-05 09:50:37 +0000 |
commit | 5e83dbdcc3ba840eab62d9056ba4f73ec60572dd (patch) | |
tree | af16c190a26cd00cb0b625115aa9e5cfef6e0ff1 | |
parent | 710746ff1e6762f5072c6ae6443fd3ad75169bc1 (diff) | |
download | gitlab-shell-5e83dbdcc3ba840eab62d9056ba4f73ec60572dd.tar.gz |
use STDERR to output error messages
-rw-r--r-- | lib/gitlab_post_receive.rb | 6 |
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 |