-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polish: improve consistency of warnings and errors #848
Conversation
🦋 Changeset detectedLatest commit: c5e7ba6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2232298793/npm-package-wrangler-848 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/848/npm-package-wrangler-848 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/2232298793/npm-package-wrangler-848 dev path/to/script.js |
ef4ea2a
to
b9adbd6
Compare
Ooh that tower of icons looks a bit imposing, no? |
I think this could be refined, but I don't feel it is imposing. Possible layout and formatting? ----------------------------
⚠️ WARNINGS:
- stuff
- more stuff
-----------------------------
❌ ERRORS/DEPRECATIONS:
- bad stuff
- more bad stuff |
I actually like how it clearly delineates the warnings and errors from the informative messages, which have no icon. |
The layout suggested by @JacobMGEvans could only be generated if we captured the calls to We could add headers to the messages output for validation, though... |
4f3f666
to
525a386
Compare
I like this better! |
OK let's go with this. I just need to work out how to fix the Windows snapshots 😿 |
4be5149
to
9c06610
Compare
9c06610
to
c5e7ba6
Compare
I will follow up with a PR to change the mocking to mock the logger rather than the console |
Related to #377