Trap Warnings in marc_export for better error reporting

Bug #1502152 reported by Jason Stephenson on 2015-10-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

marc_export currently outputs warning like the below with no indication what record caused the warning:

Record length of 133152 is larger than the MARC spec allows (99999 bytes). at /usr/share/perl5/MARC/File/ line 314.

$SIG{__WARN__} should be trapped in appropriate places to produce a warning message that includes the record type and record id for the record that triggered the warning. This would be similar what is done with the current eval blocks to trap errors from the MARC modules.

Changed in evergreen:
assignee: nobody → Jason Stephenson (jstephenson)
Jason Stephenson (jstephenson) wrote :

I am satisfied that my changes work.

Branch pushed to the working repository: user/dyrcona/lp1502152_marc_export_warning_improvements;a=shortlog;h=refs/heads/user/dyrcona/lp1502152_marc_export_warning_improvements

tags: added: pullrequest
Changed in evergreen:
assignee: Jason Stephenson (jstephenson) → nobody
Galen Charlton (gmc) on 2015-11-04
Changed in evergreen:
assignee: nobody → Galen Charlton (gmc)
Galen Charlton (gmc) wrote :

Pushed to master along with a typo fix. Thanks, Jason!

Changed in evergreen:
status: New → Fix Committed
assignee: Galen Charlton (gmc) → nobody
Changed in evergreen:
milestone: → 2.10-beta
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers