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

wings: add an error message for a Wings/Fedora-specific error #5322

Merged
merged 1 commit into from Jan 12, 2022
Merged

Conversation

no-reply
Copy link
Member

fedora won't save a FileMetadata node (describedby, in LDP terms) unless
it has already been created alongside a file it describes. if a caller tries to
save one independenly, ActiveFedora raises a RuntimeError with
the (accurate, but terse) message "Save the file first".

introduce a custom error type to help future devs figure out the pattern they're
looking for.

@samvera/hyrax-code-reviewers

fedora won't save a `FileMetadata` node (`describedby`, in LDP terms) unless
it has already been created alongside a file it describes. if a caller tries to
save one independenly, `ActiveFedora` raises a `RuntimeError` with
the (accurate, but terse) message "Save the file first".

introduce a custom error type to help future devs figure out the pattern they're
looking for.
@dunn dunn merged commit 6c384f1 into main Jan 12, 2022
@dunn dunn deleted the wing-fm-err branch January 12, 2022 18:36
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.

None yet

2 participants