]> source.dussan.org Git - redmine.git/commitdiff
Merged r6007 from trunk.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 8 Jun 2011 13:24:38 +0000 (13:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 8 Jun 2011 13:24:38 +0000 (13:24 +0000)
scm: add log message of config/configuration.yml if scm command raise Errno::ENOENT exception.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@6009 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/abstract_adapter.rb

index 518326269283cb4e3b497a6b8d7dda269c922b05..bb0161152b3ed9c15a4d55cd78350feeb3ef52e0 100644 (file)
@@ -220,8 +220,9 @@ module Redmine
             msg = strip_credential(e.message)
             # The command failed, log it and re-raise
             logmsg = "SCM command failed, "
-            logmsg += "make sure that your SCM binary (eg. svn) is "
-            logmsg += "in PATH (#{ENV['PATH']}): "
+            logmsg += "make sure that your SCM command (e.g. svn) is "
+            logmsg += "in PATH (#{ENV['PATH']})\n"
+            logmsg += "You can configure your scm commands in config/configuration.yml.\n"
             logmsg += "#{strip_credential(cmd)}\n"
             logmsg += "with: #{msg}"
             logger.error(logmsg)