diff options
author | Go MAEDA <maeda@farend.jp> | 2019-05-25 06:50:25 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-05-25 06:50:25 +0000 |
commit | b0e17e8199bb40d0b1bed2c3dded355f439d8b3a (patch) | |
tree | 694b9ccde636af70a5aa515b62d1020a5eac9e62 /lib/redmine/plugin.rb | |
parent | a12b7bcf2931045e63093adcd765d7c6e022fa05 (diff) | |
download | redmine-b0e17e8199bb40d0b1bed2c3dded355f439d8b3a.tar.gz redmine-b0e17e8199bb40d0b1bed2c3dded355f439d8b3a.zip |
Don't rescue Exception class (#31387).
Patch by Go MAEDA and Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/plugin.rb')
-rw-r--r-- | lib/redmine/plugin.rb | 6 |
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 |