Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/actors/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class ActorsInfoCommand extends ApifyCommand<typeof ActorsInfoCommand> {

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,
});

Expand Down
4 changes: 3 additions & 1 deletion src/commands/builds/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ export class BuildsCreateCommand extends ApifyCommand<typeof BuildsCreateCommand

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,
});

Expand Down
4 changes: 3 additions & 1 deletion src/commands/builds/ls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ export class BuildsLsCommand extends ApifyCommand<typeof BuildsLsCommand> {

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,
});

Expand Down
4 changes: 3 additions & 1 deletion src/commands/runs/ls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export class RunsLsCommand extends ApifyCommand<typeof RunsLsCommand> {

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;
Expand Down
Loading