diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-03-15 10:03:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-03-15 10:03:56 +0000 |
commit | 175ac71b2c05ea722615597474b8ea1922bdead4 (patch) | |
tree | 630208f4880fba60e63332a59cfbb919ed58cf53 /lib/tasks | |
parent | 47f264b15cc1ae6a3b99f661f3da3d49fd107ca1 (diff) | |
download | redmine-175ac71b2c05ea722615597474b8ea1922bdead4.tar.gz redmine-175ac71b2c05ea722615597474b8ea1922bdead4.zip |
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
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/load_default_data.rake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/load_default_data.rake b/lib/tasks/load_default_data.rake index 24e1b05f8..0aa7ab74c 100644 --- a/lib/tasks/load_default_data.rake +++ b/lib/tasks/load_default_data.rake @@ -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."
|