Skip to content

Commit 20525a7

Browse files
committed
chore: improve warning message for attribute recreation
1 parent 25ff9e7 commit 20525a7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

templates/cli/lib/commands/push.js.twig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,10 +844,14 @@ const attributesToCreate = async (remoteAttributes, localAttributes, collection,
844844

845845
if (!cliConfig.force) {
846846
if (deleting.length > 0 && !isIndex) {
847-
log(`Attribute deletion will cause ${chalk.red('loss of data')}`);
847+
console.log(`${chalk.red('-------------------------------------------------------')}`);
848+
console.log(`${chalk.red('| WARNING: Attribute deletion will cause loss of data |')}`);
849+
console.log(`${chalk.red('-------------------------------------------------------')}`);
848850
}
849851
if (conflicts.length > 0 && !isIndex) {
850-
log(`Attribute recreation will cause ${chalk.red('loss of data')}`);
852+
console.log(`${chalk.red('---------------------------------------------------------')}`);
853+
console.log(`${chalk.red('| WARNING: Attribute recreation will cause loss of data |')}`);
854+
console.log(`${chalk.red('---------------------------------------------------------')}`);
851855
}
852856

853857
if ((await getConfirmation()) !== true) {

0 commit comments

Comments
 (0)