From 76d24e44bf1ff505b2ee81aab25d842f11d374e4 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 26 Sep 2012 05:39:23 +0000 Subject: [PATCH] Merged r10471 from trunk (#11945) fix "can't convert Errno::EACCES into String" in case of no permission of public/plugin_assets on Ruby 1.9.3. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.1-stable@10473 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/plugin.rb | 4 ++-- 1 file 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