Merge pull request #28224 from akhilnarang/reword-backup-restoration-failure-message

refactor: update backup restore failure message
This commit is contained in:
Akhil Narang 2024-10-22 16:51:27 +05:30 committed by GitHub
commit 947054e7e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View file

@ -79,10 +79,8 @@ def bootstrap_database(verbose, source_sql=None):
secho(
"Table 'tabDefaultValue' missing in the restored site. "
"Database not installed correctly, this can due to lack of "
"permission, or that the database name exists. Check your mysql"
" root password, validity of the backup file or use --force to"
" reinstall",
"This happens when the backup fails to restore. Please check that the file is valid\n"
"Do go through the above output to check the exact error message from MariaDB",
fg="red",
)
sys.exit(1)

View file

@ -38,8 +38,8 @@ def bootstrap_database(verbose, source_sql=None):
secho(
"Table 'tabDefaultValue' missing in the restored site. "
"This may be due to incorrect permissions or the result of a restore from a bad backup file. "
"Database not installed correctly.",
"This happens when the backup fails to restore. Please check that the file is valid\n"
"Do go through the above output to check the exact error message from MariaDB",
fg="red",
)
sys.exit(1)