From a1e24a30242cbbe7c8f3ff0ca0385c695e49bca8 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 10 Jun 2022 15:44:21 +0100 Subject: [PATCH] fix: fixing typo in wrangler publish error message (#1223) --- packages/wrangler/src/__tests__/publish.test.ts | 6 +++--- packages/wrangler/src/publish.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/wrangler/src/__tests__/publish.test.ts b/packages/wrangler/src/__tests__/publish.test.ts index 345503a64b6c..102e547148b6 100644 --- a/packages/wrangler/src/__tests__/publish.test.ts +++ b/packages/wrangler/src/__tests__/publish.test.ts @@ -677,9 +677,9 @@ describe("publish", () => { "▲ [WARNING] The current authentication token does not have 'All Zones' permissions. Falling back to using the zone-based API endpoint to update each route individually. - Note that there is no access to read or create routes associated with zones that the API token - does not have permission for. - No existing routes will been deleted in this case. + Note that there is no access to routes associated with zones that the API token does not have + permission for. + Existing routes for this Worker in such zones will not be deleted. ▲ [WARNING] Previously deployed routes: diff --git a/packages/wrangler/src/publish.ts b/packages/wrangler/src/publish.ts index 71fbca67a884..fab225a27d3c 100644 --- a/packages/wrangler/src/publish.ts +++ b/packages/wrangler/src/publish.ts @@ -626,8 +626,8 @@ async function publishRoutesFallback( logger.warn( "The current authentication token does not have 'All Zones' permissions.\n" + "Falling back to using the zone-based API endpoint to update each route individually.\n" + - "Note that there is no access to read or create routes associated with zones that the API token does not have permission for.\n" + - "No existing routes will been deleted in this case." + "Note that there is no access to routes associated with zones that the API token does not have permission for.\n" + + "Existing routes for this Worker in such zones will not be deleted." ); const deployedRoutes: string[] = [];