Skip to content

Commit 4b577fd

Browse files
committed
changeset and fixups
1 parent 6e7af94 commit 4b577fd

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.changeset/gold-shirts-wash.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
Include more (sanitised) user errors in telemetry.
6+
7+
We manually vet and sanitised error messages before including them in our telemetry collection - this PR just includes a couple more.

packages/wrangler/src/deploy/deploy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
520520
if (config.data_blobs && format === "modules") {
521521
throw new UserError(
522522
`You cannot configure [data_blobs] with an ES module worker. Instead, import the file directly in your code, and optionally configure \`[rules]\` in your ${configFileName(config.configPath)} file`,
523-
{ telemetryMessage: "[text_blobs] with an ES module worker" }
523+
{ telemetryMessage: "[data_blobs] with an ES module worker" }
524524
);
525525
}
526526

@@ -977,7 +977,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
977977
) {
978978
throw new UserError(
979979
"You must use a real database in the database_id configuration. You can find your databases using 'wrangler d1 list', or read how to develop locally with D1 here: https://developers.cloudflare.com/d1/configuration/local-development",
980-
{ telemetryMessage: "[text_blobs] with an ES module worker" }
980+
{ telemetryMessage: true }
981981
);
982982
}
983983

@@ -1142,7 +1142,7 @@ async function publishRoutesFallback(
11421142
throw new UserError(
11431143
"Service environments combined with an API token that doesn't have 'All Zones' permissions is not supported.\n" +
11441144
"Either turn off service environments by setting `legacy_env = true`, creating an API token with 'All Zones' permissions, or logging in via OAuth",
1145-
{ telemetryMessage: "[text_blobs] with an ES module worker" }
1145+
{ telemetryMessage: true }
11461146
);
11471147
}
11481148
logger.warn(

0 commit comments

Comments
 (0)