Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FileSets and Works should barf clearly when a Collection is added as a member #276

Merged
merged 1 commit into from
Mar 4, 2016

Conversation

mjgiarlo
Copy link
Member

@mjgiarlo mjgiarlo commented Mar 1, 2016

Fixes #259

@mjgiarlo mjgiarlo force-pushed the clarify_error_message_259 branch from e1e0659 to ce23148 Compare March 1, 2016 23:30
@mjgiarlo
Copy link
Member Author

mjgiarlo commented Mar 1, 2016

This solution feels a bit heavy for what it's doing, which is spitting out a clearer error message that is supplied by Hydra::PCDM: https://github.com/projecthydra-labs/hydra-pcdm/blob/master/lib/hydra/pcdm/validators/pcdm_object_validator.rb#L2-L8 On the other hand, it follows the patterns established in the NotFileSetValidator work, so the codebase is internally consistent.

Thoughts, @jcoyne @tpendragon @escowles @elrayle ?

@tpendragon
Copy link
Contributor

Not pretty, but it works, and I don't know a better solution. Sooo...:+1:

escowles added a commit that referenced this pull request Mar 4, 2016
FileSets and Works should barf clearly when a Collection is added as a member
@escowles escowles merged commit 1ac8be2 into master Mar 4, 2016
@escowles escowles deleted the clarify_error_message_259 branch March 4, 2016 15:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants