From dae1265f9fccac868594e5cdc53befbb1e571fdf Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 17 Apr 2017 12:58:56 +0530 Subject: [PATCH] [minor] better error message for failed site --- frappe/installer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frappe/installer.py b/frappe/installer.py index d3c4296c65..22e38d476b 100755 --- a/frappe/installer.py +++ b/frappe/installer.py @@ -39,6 +39,11 @@ def install_db(root_login="root", root_password=None, db_name=None, source_sql=N frappe.connect(db_name=db_name) check_if_ready_for_barracuda() import_db_from_sql(source_sql, verbose) + if not 'tabDefaultValue' in frappe.db.get_tables(): + print '''Database not installed, this can due to lack of permission, or that the database name exists. +Check your mysql root password, or use --force to reinstall''' + sys.exit(1) + remove_missing_apps() create_auth_table()