Commit 065375d6 authored by tmaruyama's avatar tmaruyama
Browse files

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

git-svn-id: https://svn.redmine.org/redmine/trunk@10472 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 79e19798
......@@ -336,7 +336,11 @@ module Redmine #:nodoc:
unless source_files.empty?
base_target_dir = File.join(destination, File.dirname(source_files.first).gsub(source, ''))
FileUtils.mkdir_p(base_target_dir)
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|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment