Skip to content

Return an error when getting header attributes for invalid metadata version#38

Merged
jmwoliver merged 1 commit intorstudio:mainfrom
andriygm:error-with-invalid-header-ver
Jan 24, 2025
Merged

Return an error when getting header attributes for invalid metadata version#38
jmwoliver merged 1 commit intorstudio:mainfrom
andriygm:error-with-invalid-header-ver

Conversation

@andriygm
Copy link
Contributor

@andriygm andriygm commented Dec 9, 2024

Instead of returning an empty header attributes object, which causes no metadata population and later a less helpful "metadata is missing required fields" error, we should bubble this up immediately so the user knows the metadata version is not known/supported.

@andriygm andriygm changed the title Return an error when getting header attributes for invalid header version Return an error when getting header attributes for invalid metadata version Dec 9, 2024
@jmwoliver jmwoliver force-pushed the error-with-invalid-header-ver branch from ec19d67 to 6882c03 Compare January 24, 2025 21:03
@jmwoliver jmwoliver force-pushed the error-with-invalid-header-ver branch from 6882c03 to 24ab8ec Compare January 24, 2025 22:40
@jmwoliver
Copy link
Collaborator

Hey @andriygm, thanks so much for contributing! Sorry for the delay in responding. This change looks good, I'm going to merge this in now. 😃

@jmwoliver jmwoliver merged commit 1b78f81 into rstudio:main Jan 24, 2025
3 checks passed
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.

2 participants