Skip to content

Commit

Permalink
change error message when missing workerName
Browse files Browse the repository at this point in the history
  • Loading branch information
RamIdeas committed Mar 12, 2024
1 parent 53c3adf commit d902804
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export async function versionsDeployHandler(args: VersionsDeployArgs) {

if (workerName === undefined) {
throw new UserError(
'You need to provide a name when deploying a worker. Either pass it as a cli arg with `--name <name>` or in your config file as `name = "<name>"`'
'You need to provide a name of your worker. Either pass it as a cli arg with `--name <name>` or in your config file as `name = "<name>"`'
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/deployments/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function versionsDeploymentsListHandler(

if (workerName === undefined) {
throw new UserError(
'You need to provide a name when deploying a worker. Either pass it as a cli arg with `--name <name>` or in your config file as `name = "<name>"`'
'You need to provide a name of your worker. Either pass it as a cli arg with `--name <name>` or in your config file as `name = "<name>"`'
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/deployments/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function versionsDeploymentsStatusHandler(

if (workerName === undefined) {
throw new UserError(
'You need to provide a name when deploying a worker. Either pass it as a cli arg with `--name <name>` or in your config file as `name = "<name>"`'
'You need to provide a name of your worker. Either pass it as a cli arg with `--name <name>` or in your config file as `name = "<name>"`'
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function versionsListHandler(args: VersionsListArgs) {

if (workerName === undefined) {
throw new UserError(
'You need to provide a name when deploying a worker. Either pass it as a cli arg with `--name <name>` or in your config file as `name = "<name>"`'
'You need to provide a name of your worker. Either pass it as a cli arg with `--name <name>` or in your config file as `name = "<name>"`'
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ export type ApiVersion = {
"workers/tag"?: string;
};
// other properties not typed as not used
};
};
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function versionsViewHandler(args: VersionsViewArgs) {

if (workerName === undefined) {
throw new UserError(
'You need to provide a name when deploying a worker. Either pass it as a cli arg with `--name <name>` or in your config file as `name = "<name>"`'
'You need to provide a name of your worker. Either pass it as a cli arg with `--name <name>` or in your config file as `name = "<name>"`'
);
}

Expand Down

0 comments on commit d902804

Please sign in to comment.