From 581058f6636570c12b5f0b583ae558325f913fff Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 17 Sep 2012 18:38:54 +0000 Subject: [PATCH] Fixed: load_default_data task fails to print the error message if one occurs (#11844). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10413 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/load_default_data.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/load_default_data.rake b/lib/tasks/load_default_data.rake index a46082470..cc6774bce 100644 --- a/lib/tasks/load_default_data.rake +++ b/lib/tasks/load_default_data.rake @@ -26,9 +26,9 @@ namespace :redmine do Redmine::DefaultData::Loader.load(current_language) puts "Default configuration data loaded." rescue Redmine::DefaultData::DataAlreadyLoaded => error - puts error + puts error.message rescue => error - puts "Error: " + error + puts "Error: " + error.message puts "Default configuration data was not loaded." end end -- 2.39.5