Log return code if error.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8239 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Etienne Massip 2011-12-15 21:59:49 +00:00
parent b6612ea8bb
commit b49f83a22a
1 changed files with 1 additions and 0 deletions

View File

@ -232,6 +232,7 @@ module Redmine
io.close_write
block.call(io) if block_given?
end
logger.debug "Return code: #{$?.exitstatus}" if !$?.success? && logger && logger.debug?
## If scm command does not exist,
## Linux JRuby 1.6.2 (ruby-1.8.7-p330) raises java.io.IOException
## in production environment.