diff --git a/src/commands/actors/info.ts b/src/commands/actors/info.ts index 99d025801..2ab6f068a 100644 --- a/src/commands/actors/info.ts +++ b/src/commands/actors/info.ts @@ -108,7 +108,7 @@ export class ActorsInfoCommand extends ApifyCommand { if (!ctx.valid) { error({ - message: `${ctx.reason}. Please specify the Actor ID.`, + message: `${ctx.reason}.`, stdout: true, }); diff --git a/src/commands/builds/create.ts b/src/commands/builds/create.ts index 6a408b53f..82f105274 100644 --- a/src/commands/builds/create.ts +++ b/src/commands/builds/create.ts @@ -87,7 +87,7 @@ 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: `${ctx.reason}.`, stdout: true, }); diff --git a/src/commands/runs/ls.ts b/src/commands/runs/ls.ts index 0fbfe16c2..56ef7e42f 100644 --- a/src/commands/runs/ls.ts +++ b/src/commands/runs/ls.ts @@ -89,7 +89,7 @@ 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: `${ctx.reason}.`, }); return; diff --git a/src/lib/commands/resolve-actor-context.ts b/src/lib/commands/resolve-actor-context.ts index bc0ed27c7..d293a4f7d 100644 --- a/src/lib/commands/resolve-actor-context.ts +++ b/src/lib/commands/resolve-actor-context.ts @@ -85,6 +85,7 @@ export async function resolveActorContext({ return { valid: false as const, - reason: 'Unable to detect what Actor to create a build for', + reason: + 'No Actor specified. Pass an Actor ID or "username/name", or run this command from an Actor project directory', }; }