Show explicit error message when the scm command failed (eg. when svn binary is not available).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1094 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-01-23 17:25:11 +00:00
parent 97e7432ce6
commit 91dc13f4b2
26 changed files with 90 additions and 27 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ module Redmine
rescue Errno::ENOENT => e
# The command failed, log it and re-raise
logger.error("SCM command failed: #{cmd}\n with: #{e.message}")
raise CommandFailed
raise CommandFailed.new(e.message)
end
end
end
@@ -66,7 +66,6 @@ module Redmine
entries = Entries.new
cmd = "#{SVN_BIN} list --xml #{target(path)}@#{identifier}"
cmd << credentials_string
cmd << " 2>&1"
shellout(cmd) do |io|
output = io.read
begin