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.rb4
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