We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dbc83f commit 7405f45Copy full SHA for 7405f45
1 file changed
packages/contentstack/src/hooks/prerun/auth-guard.ts
@@ -20,7 +20,7 @@ export default async function (opts): Promise<void> {
20
// Auth guard
21
if (protectedCommands[opts.Command.id]) {
22
if (!isAuthenticated()) {
23
- handleAndLogError(new Error('No auth token found for command.'), { module: 'auth-guard', commandId: opts.Command.id });
+ handleAndLogError(new Error('Authentication required for this command'), { module: 'auth-guard', commandId: opts.Command.id });
24
cliux.error('Please log in to execute the command');
25
this.exit();
26
}
0 commit comments