add more error message if public/plugin_assets cannot be created (#11945)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10472 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-09-26 04:11:14 +00:00
parent 29292a3faf
commit b7c71fe427
1 changed files with 5 additions and 1 deletions

View File

@ -336,7 +336,11 @@ module Redmine #:nodoc:
unless source_files.empty?
base_target_dir = File.join(destination, File.dirname(source_files.first).gsub(source, ''))
begin
FileUtils.mkdir_p(base_target_dir)
rescue Exception => e
raise "Could not create directory #{base_target_dir}: " + e.message
end
end
source_dirs.each do |dir|