Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/commands/aem/rde/snapshot/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ class CreateSnapshots extends BaseCommand {
throw new snapshotCodes.SNAPSHOT_NOT_FOUND();
} else {
spinnies?.stopAll('fail');
this.doLog('Could not get the progress of the snapshot creation.');
const msg =
'Could not get the progress of the snapshot creation. We will automatically retry the snapshot creation in the next few minutes. Please check the snapshot creation status using the list of snapshots to check on the state.';
this.doLog(chalk.red(msg));
this.notify('failed', msg);
spinnies?.stopAll('fail');
throw new internalCodes.UNKNOWN();
}
Expand All @@ -146,8 +149,10 @@ class CreateSnapshots extends BaseCommand {
}
if (lastProgress === -2) {
spinnies?.stopAll('fail');
this.doLog(chalk.red('Snapshot creation failed.'));
this.notify('failed', 'Snapshot creation failed.');
const msg =
'Snapshot creation failed. We will automatically retry the snapshot creation in the next few minutes. Please check the snapshot creation status using the list of snapshots to check on the state.';
this.doLog(chalk.red(msg));
this.notify('failed', msg);
throw new snapshotCodes.SNAPSHOT_CREATION_FAILED();
}

Expand Down