diff --git a/src/commands/actors/info.ts b/src/commands/actors/info.ts index 839ea250f..504ac7a19 100644 --- a/src/commands/actors/info.ts +++ b/src/commands/actors/info.ts @@ -93,7 +93,7 @@ export class ActorsInfoCommand extends ApifyCommand { if (!ctx.valid) { error({ - message: `${ctx.reason}. Please specify the Actor ID.`, + message: `${ctx.reason}. Check that the ID or name is correct and that your API token has access to this Actor.`, stdout: true, }); diff --git a/src/commands/builds/create.ts b/src/commands/builds/create.ts index 7e386b6ce..3d3ffc8e6 100644 --- a/src/commands/builds/create.ts +++ b/src/commands/builds/create.ts @@ -83,7 +83,9 @@ export class BuildsCreateCommand extends ApifyCommand { if (!ctx.valid) { error({ - message: `${ctx.reason}. Please run this command in an Actor directory, or specify the Actor ID.`, + message: actorId + ? `${ctx.reason}. Check that the ID or name is correct and that your API token has access to this Actor.` + : `${ctx.reason}. Run this command in an Actor directory, or specify the Actor ID.`, stdout: true, }); diff --git a/src/commands/runs/ls.ts b/src/commands/runs/ls.ts index e4808979d..a17cec39b 100644 --- a/src/commands/runs/ls.ts +++ b/src/commands/runs/ls.ts @@ -87,7 +87,9 @@ export class RunsLsCommand extends ApifyCommand { if (!ctx.valid) { error({ - message: `${ctx.reason}. Please run this command in an Actor directory, or specify the Actor ID.`, + message: actorId + ? `${ctx.reason}. Check that the ID or name is correct and that your API token has access to this Actor.` + : `${ctx.reason}. Run this command in an Actor directory, or specify the Actor ID.`, }); return;