From d902804843585b4311dcf3bdf7ddd18b9128a851 Mon Sep 17 00:00:00 2001 From: Rahul Sethi <5822355+RamIdeas@users.noreply.github.com> Date: Tue, 12 Mar 2024 20:59:51 +0000 Subject: [PATCH] change error message when missing workerName --- packages/wrangler/src/versions/deploy.ts | 2 +- packages/wrangler/src/versions/deployments/list.ts | 2 +- packages/wrangler/src/versions/deployments/status.ts | 2 +- packages/wrangler/src/versions/list.ts | 2 +- packages/wrangler/src/versions/types.d.ts | 2 +- packages/wrangler/src/versions/view.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/wrangler/src/versions/deploy.ts b/packages/wrangler/src/versions/deploy.ts index d93e1b073217..c3168becf9fd 100644 --- a/packages/wrangler/src/versions/deploy.ts +++ b/packages/wrangler/src/versions/deploy.ts @@ -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 ` or in your config file as `name = ""`' + 'You need to provide a name of your worker. Either pass it as a cli arg with `--name ` or in your config file as `name = ""`' ); } diff --git a/packages/wrangler/src/versions/deployments/list.ts b/packages/wrangler/src/versions/deployments/list.ts index 04e3310a92ed..5875ab65bc8f 100644 --- a/packages/wrangler/src/versions/deployments/list.ts +++ b/packages/wrangler/src/versions/deployments/list.ts @@ -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 ` or in your config file as `name = ""`' + 'You need to provide a name of your worker. Either pass it as a cli arg with `--name ` or in your config file as `name = ""`' ); } diff --git a/packages/wrangler/src/versions/deployments/status.ts b/packages/wrangler/src/versions/deployments/status.ts index 5be5230d8b51..430bb69c81c6 100644 --- a/packages/wrangler/src/versions/deployments/status.ts +++ b/packages/wrangler/src/versions/deployments/status.ts @@ -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 ` or in your config file as `name = ""`' + 'You need to provide a name of your worker. Either pass it as a cli arg with `--name ` or in your config file as `name = ""`' ); } diff --git a/packages/wrangler/src/versions/list.ts b/packages/wrangler/src/versions/list.ts index 02f5fafcdb3b..d44ea5a32a8a 100644 --- a/packages/wrangler/src/versions/list.ts +++ b/packages/wrangler/src/versions/list.ts @@ -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 ` or in your config file as `name = ""`' + 'You need to provide a name of your worker. Either pass it as a cli arg with `--name ` or in your config file as `name = ""`' ); } diff --git a/packages/wrangler/src/versions/types.d.ts b/packages/wrangler/src/versions/types.d.ts index 5af6f0f09247..b247d2291a0d 100644 --- a/packages/wrangler/src/versions/types.d.ts +++ b/packages/wrangler/src/versions/types.d.ts @@ -36,4 +36,4 @@ export type ApiVersion = { "workers/tag"?: string; }; // other properties not typed as not used -}; \ No newline at end of file +}; diff --git a/packages/wrangler/src/versions/view.ts b/packages/wrangler/src/versions/view.ts index 18534e54c709..db8ca5fb9ea3 100644 --- a/packages/wrangler/src/versions/view.ts +++ b/packages/wrangler/src/versions/view.ts @@ -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 ` or in your config file as `name = ""`' + 'You need to provide a name of your worker. Either pass it as a cli arg with `--name ` or in your config file as `name = ""`' ); }