Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit c132f34

Browse files
committed
Improve error message in import-db.
1 parent 236d0ad commit c132f34

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

guest/cli/commands/import-db

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ bakfile=$(box backup-db --quiet --echo-filename --dry-run)
3737

3838
if [ "${bakfile}" == "${importfile}" ]; then
3939

40-
echo_if_not_quiet "$*", "^\tERROR: The default backup filename is '$1'."
41-
echo_if_not_quiet "$*", "=\tCannot backup before import thus cannot continue."
40+
echo_if_not_quiet "$*", "=\tERROR: Cannot backup '$1' because the"
41+
echo_if_not_quiet "$*", "=\t default backup filename is '$1'"
42+
echo_if_not_quiet "$*", "^\t thus cannot backup before import."
43+
echo_if_not_quiet "$*", "=\t Rename ${importfile} to "
44+
echo_if_not_quiet "$*", "=\t bypass this check and allow import."
4245
return
4346

4447
fi

0 commit comments

Comments
 (0)