From b7c71fe427a0ca70dc9f1c7c8511872a6869d102 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 26 Sep 2012 04:11:14 +0000 Subject: [PATCH] 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 --- lib/redmine/plugin.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index 971f48f4e..0b7a4f6e5 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -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|