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:
parent
47f264b15c
commit
175ac71b2c
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue