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:
parent
29292a3faf
commit
b7c71fe427
|
@ -336,7 +336,11 @@ module Redmine #:nodoc:
|
||||||
|
|
||||||
unless source_files.empty?
|
unless source_files.empty?
|
||||||
base_target_dir = File.join(destination, File.dirname(source_files.first).gsub(source, ''))
|
base_target_dir = File.join(destination, File.dirname(source_files.first).gsub(source, ''))
|
||||||
|
begin
|
||||||
FileUtils.mkdir_p(base_target_dir)
|
FileUtils.mkdir_p(base_target_dir)
|
||||||
|
rescue Exception => e
|
||||||
|
raise "Could not create directory #{base_target_dir}: " + e.message
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
source_dirs.each do |dir|
|
source_dirs.each do |dir|
|
||||||
|
|
Loading…
Reference in New Issue