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

extract: Don't crash when the error is not an ErrorPrimitiveReached #967

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

iainlane
Copy link
Member

@iainlane iainlane commented Dec 5, 2023

When there's an invalid Kubernetes object, we can get a *manifest.SchemaError here, for example. We currently panic, but instead we should return the error so it can be displayed properly.

Closes: #960

… proper error

Currently fails, to be fixed in the next commit
When there's an invalid Kubernetes object, we can get a
`*manifest.SchemaError` here, for example. We currently panic, but
instead we should return the error so it can be displayed properly.
Copy link

github-actions bot commented Dec 5, 2023

PR Preview Action v1.4.6
Preview removed because the pull request was closed.
2023-12-19 10:30 UTC

@iainlane
Copy link
Member Author

iainlane commented Dec 5, 2023

See the first commit - new test fails there and then passes with the second one

@iainlane iainlane marked this pull request as ready for review December 5, 2023 16:00
@iainlane iainlane requested a review from a team December 5, 2023 16:00
@iainlane iainlane merged commit 52803c6 into main Dec 19, 2023
8 checks passed
@iainlane iainlane deleted the iainlane/bad-manifest-export-give-proper-error branch December 19, 2023 10:27
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.

Tanka panics if non-string annotation values are passed
2 participants