diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-26 04:11:00 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-26 04:11:00 +0000 |
commit | 29292a3faf4da59210db9b0ab211ba5c7bbf6079 (patch) | |
tree | fd6faa7d7e7b7a38cd33916096c0c8829f673027 /lib/redmine/plugin.rb | |
parent | d1d86408224e2d6731a88928d42e4ef9effc82a9 (diff) | |
download | redmine-29292a3faf4da59210db9b0ab211ba5c7bbf6079.tar.gz redmine-29292a3faf4da59210db9b0ab211ba5c7bbf6079.zip |
fix "can't convert Errno::EACCES into String" in case of no permission of public/plugin_assets on Ruby 1.9.3 (#11945)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10471 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/plugin.rb')
-rw-r--r-- | lib/redmine/plugin.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index dae51ee43..971f48f4e 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -346,7 +346,7 @@ module Redmine #:nodoc: begin FileUtils.mkdir_p(target_dir) rescue Exception => e - raise "Could not create directory #{target_dir}: \n" + e + raise "Could not create directory #{target_dir}: " + e.message end end @@ -357,7 +357,7 @@ module Redmine #:nodoc: FileUtils.cp(file, target) end rescue Exception => e - raise "Could not copy #{file} to #{target}: \n" + e + raise "Could not copy #{file} to #{target}: " + e.message end end end |