Merge pull request #28224 from akhilnarang/reword-backup-restoration-failure-message
refactor: update backup restore failure message
This commit is contained in:
commit
947054e7e6
2 changed files with 4 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue