From a9818650c59ad0e12aad24ad76a8e529d3fcb4fa Mon Sep 17 00:00:00 2001 From: rliechti Date: Tue, 23 Dec 2025 11:16:21 +0100 Subject: [PATCH 1/2] enhance message --- src/commands/aem/rde/snapshot/create.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/commands/aem/rde/snapshot/create.js b/src/commands/aem/rde/snapshot/create.js index a6d0009..3520371 100644 --- a/src/commands/aem/rde/snapshot/create.js +++ b/src/commands/aem/rde/snapshot/create.js @@ -128,7 +128,9 @@ 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 +148,9 @@ 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(); } From 106fd4ef55678b685d2b8176e6c0a2921bbb6f34 Mon Sep 17 00:00:00 2001 From: rliechti Date: Tue, 23 Dec 2025 11:19:49 +0100 Subject: [PATCH 2/2] lint --- src/commands/aem/rde/snapshot/create.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/aem/rde/snapshot/create.js b/src/commands/aem/rde/snapshot/create.js index 3520371..59f0c21 100644 --- a/src/commands/aem/rde/snapshot/create.js +++ b/src/commands/aem/rde/snapshot/create.js @@ -128,7 +128,8 @@ class CreateSnapshots extends BaseCommand { throw new snapshotCodes.SNAPSHOT_NOT_FOUND(); } else { spinnies?.stopAll('fail'); - 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.'; + 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'); @@ -148,7 +149,8 @@ class CreateSnapshots extends BaseCommand { } if (lastProgress === -2) { spinnies?.stopAll('fail'); - 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.'; + 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();