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

Suggestion for improving error messaging for marc rake file #120

Open
brittnylapierre opened this issue Jul 30, 2024 · 0 comments
Open

Suggestion for improving error messaging for marc rake file #120

brittnylapierre opened this issue Jul 30, 2024 · 0 comments

Comments

@brittnylapierre
Copy link

brittnylapierre commented Jul 30, 2024

Hello! I am writing to suggest an enhancement to the error messaging of the marc indexer rake file.

It could be pertinent to know which record(s) produce an error especially for large files with thousands of records.

If a single record in a marc file has a formatting issue, this is what will be printed:
rake aborted! INFO Traject: Indexer with 1 processing threads, reader: Traject::MarcReader and writer: Traject::SolrJsonWriter NoMethodError: undefined method pack for nil:NilClass /usr/local/bundle/gems/marc-1.2.0/lib/marc/reader.rb:362:in block in decode ...

I believe that printing the '001' field along with the message that the record is not formatted correctly would be more helpful, for example,
rake aborted! INFO: Record <value of 001 field> has a formatting issue and could not be processed. Please remove the record from your file, or correct any issues, and try again.

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

No branches or pull requests

1 participant