A platform for community discussion. Free, open, simple.
DEV: Error message if multisite DB can't be created
Robin Ward9fc1a754fe73
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rakeindex d1af8e7a069..05cf2bd3433 100644--- a/lib/tasks/db.rake+++ b/lib/tasks/db.rake@@ -32,7 +32,14 @@ endtask 'db:create' => [:load_config] do |_, args|if MultisiteTestHelpers.create_multisite?- system("RAILS_ENV=test RAILS_DB=discourse_test_multisite rake db:create")+ unless system("RAILS_ENV=test RAILS_DB=discourse_test_multisite rake db:create")++ STDERR.puts "-" * 80+ STDERR.puts "ERROR: Could not create multisite DB. A common cause of this is a plugin"+ STDERR.puts "checking the column structure when initializing, which raises an error."+ STDERR.puts "-" * 80+ raise "Could not initialize discourse_test_multisite"+ endendend