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
|
begin
|
||||||
Redmine::DefaultData::Loader.load(current_language)
|
Redmine::DefaultData::Loader.load(current_language)
|
||||||
puts "Default configuration data loaded."
|
puts "Default configuration data loaded."
|
||||||
|
rescue Redmine::DefaultData::DataAlreadyLoaded => error
|
||||||
|
puts error
|
||||||
rescue => error
|
rescue => error
|
||||||
puts "Error: " + error
|
puts "Error: " + error
|
||||||
puts "Default configuration data was not loaded."
|
puts "Default configuration data was not loaded."
|
||||||
|
|
Loading…
Reference in New Issue