Skip to content

Commit f003dba

Browse files
author
naman-contentstack
committed
resolved comments
1 parent 6918642 commit f003dba

File tree

1 file changed

+2
-2
lines changed
  • packages/contentstack-clone/src/commands/cm/stacks

1 file changed

+2
-2
lines changed

packages/contentstack-clone/src/commands/cm/stacks/clone.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { Command } = require('@contentstack/cli-command');
2-
const { configHandler, flags, isAuthenticated, managementSDKClient, log } = require('@contentstack/cli-utilities');
2+
const { configHandler, flags, isAuthenticated, managementSDKClient, log, handleAndLogError } = require('@contentstack/cli-utilities');
33
const { CloneHandler } = require('../../../lib/util/clone-handler');
44
const path = require('path');
55
const { rimraf } = require('rimraf');
@@ -153,7 +153,7 @@ class StackCloneCommand extends Command {
153153
cloneHandler.setClient(managementAPIClient);
154154
log.debug('Starting clone operation', cloneContext);
155155
cloneHandler.execute().catch((error) => {
156-
log.error('Clone operation failed', { ...cloneContext, error });
156+
handleAndLogError(error, cloneContext);
157157
});
158158
};
159159

0 commit comments

Comments
 (0)