From b49f83a22a9f48b9168391a03922f584830bef4f Mon Sep 17 00:00:00 2001 From: Etienne Massip Date: Thu, 15 Dec 2011 21:59:49 +0000 Subject: [PATCH] Log return code if error. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8239 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/abstract_adapter.rb | 1 + 1 file changed, 1 insertion(+) 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.