]> source.dussan.org Git - redmine.git/commitdiff
Rescue Redmine::DefaultData::DataAlreadyLoaded in redmine:load_default_data task.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Mar 2009 10:03:56 +0000 (10:03 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Mar 2009 10:03:56 +0000 (10:03 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2592 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/load_default_data.rake

index 24e1b05f86f66e04c13cffe2a4274147cd55ccd8..0aa7ab74c3c17022a79dff9cc2019da70b542a56 100644 (file)
@@ -25,6 +25,8 @@ namespace :redmine do
     begin\r
       Redmine::DefaultData::Loader.load(current_language)\r
       puts "Default configuration data loaded."\r
+    rescue Redmine::DefaultData::DataAlreadyLoaded => error\r
+      puts error\r
     rescue => error\r
       puts "Error: " + error\r
       puts "Default configuration data was not loaded."\r