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

feat(partitions): custom error for nonexistent partition #826

Merged
merged 8 commits into from
Aug 29, 2024

Conversation

mattculler
Copy link
Contributor

@mattculler mattculler commented Aug 21, 2024

  • Have you signed the CLA?

Raise a custom error when a nonexistent partition is asked for, so corncraft can catch it more cleanly.

Depending on the stringification is fragile, but if you don't do some sort of deeper check then you could accidentally handle other ValueErrors.

(CRAFT-3031)

@mattculler mattculler self-assigned this Aug 21, 2024
@mattculler mattculler requested a review from a team August 28, 2024 21:36
@mattculler mattculler marked this pull request as ready for review August 28, 2024 21:36
craft_parts/dirs.py Outdated Show resolved Hide resolved
@lengau lengau requested a review from a team August 29, 2024 12:52
craft_parts/errors.py Show resolved Hide resolved
@mattculler
Copy link
Contributor Author

Linters are failing because cmake.org is down right now.

@mattculler mattculler merged commit 1d4da7f into main Aug 29, 2024
10 checks passed
@mattculler mattculler deleted the work/CRAFT-3031-raise-mode-specific-error branch August 29, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants