fix: improve error message when the entrypoint is incorrect
Fixes https://jira.cfdata.org/browse/DEVX-2304
This PR simple slightly improves the wording of errors being thrown when an entrypoint configuration is incorrect, hopefully providing more clear and actionable errors to users.
- Tests
- [x] Tests included
- [ ] Tests not necessary because:
- Public documentation
- [ ] Cloudflare docs PR(s):
- [x] Documentation not necessary because: UX improvement not requiring documentation
- Wrangler V3 Backport
- [x] Wrangler PR: https://github.com/cloudflare/workers-sdk/pull/11406
- [ ] Not necessary because:
🦋 Changeset detected
Latest commit: abf5042f41e3cba07389c7e14387407bcdae9dc5
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
create-cloudflare
npm i https://pkg.pr.new/create-cloudflare@11350
@cloudflare/kv-asset-handler
npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11350
miniflare
npm i https://pkg.pr.new/miniflare@11350
@cloudflare/pages-shared
npm i https://pkg.pr.new/@cloudflare/pages-shared@11350
@cloudflare/unenv-preset
npm i https://pkg.pr.new/@cloudflare/unenv-preset@11350
@cloudflare/vite-plugin
npm i https://pkg.pr.new/@cloudflare/vite-plugin@11350
@cloudflare/vitest-pool-workers
npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11350
@cloudflare/workers-editor-shared
npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11350
@cloudflare/workers-utils
npm i https://pkg.pr.new/@cloudflare/workers-utils@11350
wrangler
npm i https://pkg.pr.new/wrangler@11350
commit: abf5042
Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the v3-maintenance branch with your changes. Thank you for helping us keep Wrangler v3 supported!
Depending on your changes, running git rebase --onto v3-maintenance main dario/DEVX-2304/wrangler-deploy-entrypoint-error-warning might be a good starting point.
Notes:
- your PR branch should be named
v3-backport-11350 - add the
skip-v3-prlabel to the current PR to stop this workflow from failing