diff --git a/src/commands/aem/rde/snapshot/create.js b/src/commands/aem/rde/snapshot/create.js index a6d0009..59f0c21 100644 --- a/src/commands/aem/rde/snapshot/create.js +++ b/src/commands/aem/rde/snapshot/create.js @@ -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(); } @@ -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(); }