Skip to content

Commit 7405f45

Browse files
author
naman-contentstack
committed
fix: updated error message
1 parent 4dbc83f commit 7405f45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/contentstack/src/hooks/prerun/auth-guard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default async function (opts): Promise<void> {
2020
// Auth guard
2121
if (protectedCommands[opts.Command.id]) {
2222
if (!isAuthenticated()) {
23-
handleAndLogError(new Error('No auth token found for command.'), { module: 'auth-guard', commandId: opts.Command.id });
23+
handleAndLogError(new Error('Authentication required for this command'), { module: 'auth-guard', commandId: opts.Command.id });
2424
cliux.error('Please log in to execute the command');
2525
this.exit();
2626
}

0 commit comments

Comments
 (0)