summaryrefslogtreecommitdiffstats
path: root/lib/redmine/plugin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/plugin.rb')
-rw-r--r--lib/redmine/plugin.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb
index b5fa3d209..998595339 100644
--- a/lib/redmine/plugin.rb
+++ b/lib/redmine/plugin.rb
@@ -422,7 +422,7 @@ module Redmine
base_target_dir = File.join(destination, File.dirname(source_files.first).gsub(source, ''))
begin
FileUtils.mkdir_p(base_target_dir)
- rescue Exception => e
+ rescue => e
raise "Could not create directory #{base_target_dir}: " + e.message
end
end
@@ -433,7 +433,7 @@ module Redmine
target_dir = File.join(destination, dir.gsub(source, ''))
begin
FileUtils.mkdir_p(target_dir)
- rescue Exception => e
+ rescue => e
raise "Could not create directory #{target_dir}: " + e.message
end
end
@@ -444,7 +444,7 @@ module Redmine
unless File.exist?(target) && FileUtils.identical?(file, target)
FileUtils.cp(file, target)
end
- rescue Exception => e
+ rescue => e
raise "Could not copy #{file} to #{target}: " + e.message
end
end