Skip to content
Merged
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 @@ -108,7 +108,7 @@ export class ActorsInfoCommand extends ApifyCommand<typeof ActorsInfoCommand> {

if (!ctx.valid) {
error({
message: `${ctx.reason}. Please specify the Actor ID.`,
message: `${ctx.reason}.`,
stdout: true,
});

Expand Down
2 changes: 1 addition & 1 deletion src/commands/builds/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ 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: `${ctx.reason}.`,
stdout: true,
});

Expand Down
2 changes: 1 addition & 1 deletion src/commands/builds/ls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ 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: `${ctx.reason}.`,
stdout: true,
});

Expand Down
2 changes: 1 addition & 1 deletion src/commands/runs/ls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ 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: `${ctx.reason}.`,
});

return;
Expand Down
3 changes: 2 additions & 1 deletion src/lib/commands/resolve-actor-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
}
Loading