DOI Organizer: make it easier to identify offending item + what's wrong with the item #9827
Labels
bug
error handling
How errors are handled and/or logged
identifier: DOIs
Related to integration with DOIs
Milestone
Describe the bug
When the DOI Organizer errors out, a typical error signature looks like:
There are two problems with this:
If the DOI is not yet on a live item, it is not super easy to identify the offending item from doi:10.13025/14703, as it requires a lookup/inspection into the DOI table. Would be great if the item uuid would be logged alongside the error.
The error message doesn't make it clear what's wrong with the metadata of the item. Cases that we have seen that is causing errors are null/empty metadata values for a specific field, or the DOI being present twice, but there are other cases as well.
Would be really great if the error statement makes it clear which metadata field or value is causing the problem.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The offending item and offending metadata field should be clear from the log, so that the errors are easily resolved.
The text was updated successfully, but these errors were encountered: