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

Make DisplayParseError an error type #9325

Merged
merged 1 commit into from
Dec 31, 2023
Merged

Conversation

charliermarsh
Copy link
Member

Summary

This is a non-behavior-changing refactor to follow-up #9321 by modifying DisplayParseError to use owned data and make it useable as a standalone error type (rather than using references and implementing Display). I don't feel very strongly either way. I thought it was awkward that the FormatCommandError had two branches in the display path, and wanted to represent the Parse vs. other cases as a separate enum, so here we are.

@charliermarsh charliermarsh requested a review from zanieb December 30, 2023 21:51
@charliermarsh charliermarsh added the internal An internal refactor or improvement label Dec 30, 2023
Copy link
Contributor

github-actions bot commented Dec 30, 2023

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Base automatically changed from charlie/display-parse-error to main December 31, 2023 12:10
@charliermarsh charliermarsh marked this pull request as ready for review December 31, 2023 12:11
@charliermarsh charliermarsh enabled auto-merge (squash) December 31, 2023 15:40
@charliermarsh charliermarsh merged commit da8a3af into main Dec 31, 2023
16 checks passed
@charliermarsh charliermarsh deleted the charlie/parse-error branch December 31, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants