]> source.dussan.org Git - redmine.git/commitdiff
More detailed error message in log when scm command fails (#1682).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 25 Aug 2008 12:31:53 +0000 (12:31 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 25 Aug 2008 12:31:53 +0000 (12:31 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1757 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/abstract_adapter.rb

index c096a6e430e725d6e53c517c64d85b7f4a18f959..9f400880dc395b9e27cb06d4028e6055bc11cba4 100644 (file)
@@ -179,7 +179,7 @@ module Redmine
           rescue Errno::ENOENT => e
             msg = strip_credential(e.message)
             # The command failed, log it and re-raise
-            logger.error("SCM command failed: #{strip_credential(cmd)}\n  with: #{msg}")
+            logger.error("SCM command failed, make sure that your SCM binary (eg. svn) is in PATH (#{ENV['PATH']}): #{strip_credential(cmd)}\n  with: #{msg}")
             raise CommandFailed.new(msg)
           end
         end