Commit 011317c8 authored by Stan Hu's avatar Stan Hu

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
parents 710746ff 5e83dbdc
...@@ -82,10 +82,10 @@ class GitlabPostReceive ...@@ -82,10 +82,10 @@ class GitlabPostReceive
begin begin
GitlabNet.new.redis_client.rpush(queue, msg) GitlabNet.new.redis_client.rpush(queue, msg)
return true true
rescue => e rescue => e
puts "GitLab: An unexpected error occurred in writing to Redis: #{e}" $stderr.puts "GitLab: An unexpected error occurred in writing to Redis: #{e}"
return false false
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment