aboutsummaryrefslogtreecommitdiff
path: root/modules/core/module-system.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/module-system.js')
-rw-r--r--modules/core/module-system.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/core/module-system.js b/modules/core/module-system.js
index b9b62a6..40b0861 100644
--- a/modules/core/module-system.js
+++ b/modules/core/module-system.js
@@ -479,9 +479,8 @@
this.commands['checkpoint'] = (args) => {
try {
const name = args[0] || '';
- this.terminal.fs.checkpoint(name);
- const displayName = name || new Date().toISOString();
- this.terminal.print('✅ Checkpoint created: ' + displayName, 'success');
+ const created = this.terminal.fs.checkpoint(name);
+ this.terminal.print('✅ Checkpoint created: ' + (created || name), 'success');
} catch (e) {
this.terminal.print('Checkpoint failed: ' + e.message, 'error');
}