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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user