mirror of
https://github.com/redmine/redmine.git
synced 2026-03-04 03:21:24 +01:00
More detailed error message in log when scm command fails (#1682).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1757 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user