Rescue Redmine::DefaultData::DataAlreadyLoaded in redmine:load_default_data task.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2592 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-03-15 10:03:56 +00:00
parent 47f264b15c
commit 175ac71b2c
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ namespace :redmine do
begin
Redmine::DefaultData::Loader.load(current_language)
puts "Default configuration data loaded."
rescue Redmine::DefaultData::DataAlreadyLoaded => error
puts error
rescue => error
puts "Error: " + error
puts "Default configuration data was not loaded."