diff options
author | Etienne Massip <etienne.massip@gmail.com> | 2011-12-15 21:59:49 +0000 |
---|---|---|
committer | Etienne Massip <etienne.massip@gmail.com> | 2011-12-15 21:59:49 +0000 |
commit | b49f83a22a9f48b9168391a03922f584830bef4f (patch) | |
tree | ce4ce9187a2fd98f899081f2e328ac7aa3bbcd2b /lib/redmine | |
parent | b6612ea8bb6c66387f66375d05737211d3afbde7 (diff) | |
download | redmine-b49f83a22a9f48b9168391a03922f584830bef4f.tar.gz redmine-b49f83a22a9f48b9168391a03922f584830bef4f.zip |
Log return code if error.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8239 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/scm/adapters/abstract_adapter.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index bb46a4865..2c539abaf 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -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. |