Skip to content
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

Use AstroError for Astro.glob errors #7219

Merged
merged 9 commits into from
May 29, 2023
Merged

Use AstroError for Astro.glob errors #7219

merged 9 commits into from
May 29, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented May 26, 2023

Changes

Followup to #7204

Use AstroError for Astro.glob errors so we get better error messages

Testing

Added e2e tests. And manually tested it.

Docs

Added new errors!
/cc @withastro/maintainers-docs for feedback!

@bluwy bluwy requested a review from a team as a code owner May 26, 2023 09:38
@changeset-bot
Copy link

changeset-bot bot commented May 26, 2023

🦋 Changeset detected

Latest commit: 468d1a7

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

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label May 26, 2023
Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bluwy! No errors in these, but see what you think of my suggestions below! ;)

packages/astro/src/core/errors/errors-data.ts Outdated Show resolved Hide resolved
packages/astro/src/core/errors/errors-data.ts Outdated Show resolved Hide resolved
packages/astro/src/core/errors/errors-data.ts Outdated Show resolved Hide resolved
Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These errors look great. Thanks @bluwy!

@bluwy bluwy merged commit af3c5a2 into main May 29, 2023
@bluwy bluwy deleted the error-glob branch May 29, 2023 12:42
@astrobot-houston astrobot-houston mentioned this pull request May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants