Commit 5e83dbdc authored by Valery Sizov's avatar Valery Sizov

use STDERR to output error messages

parent 710746ff
......@@ -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
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