Skip to content

Commit 99c1ab2

Browse files
committed
changeset and fixups
1 parent 6e7af94 commit 99c1ab2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
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: 2 additions & 2 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

0 commit comments

Comments
 (0)