]> source.dussan.org Git - redmine.git/commitdiff
Fixed: load_default_data task fails to print the error message if one occurs (#11844).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 17 Sep 2012 18:38:54 +0000 (18:38 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 17 Sep 2012 18:38:54 +0000 (18:38 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10413 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/load_default_data.rake

index a460824707c3cc9bd10a3741e4c273d54e68727b..cc6774bce6eaea801719bae55bf4c198a4c77439 100644 (file)
@@ -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