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

Clarify error message when trying to add Extension to asset with no owner #634

Closed
lossyrob opened this issue Oct 4, 2021 · 0 comments · Fixed by #746
Closed

Clarify error message when trying to add Extension to asset with no owner #634

lossyrob opened this issue Oct 4, 2021 · 0 comments · Fixed by #746
Milestone

Comments

@lossyrob
Copy link
Member

lossyrob commented Oct 4, 2021

Just talked with a user who was using the ProjectionExtension to add projection information to assets. They had the add_if_missing=True flag set. The assets were being created before they were being attached to the Item, so the error here was thrown:

Can only add schema URIs to Assets with an owner.

The user wasn't clear on what the error message meant. There was some explination about how Assets and Items can hold projection extension information, but on Items can hold the Schema URI's, which act as the IDs for the extension that must be declared. Things got cleared up, but I think that the error message was a bit confusing and could be cleared up to point a user who's newer to usage of extensions to the correct fix.

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 a pull request may close this issue.

2 participants