LP 1502152: Improve marc_export warnings. user/dyrcona/lp1502152_marc_export_warning_improvements
authorJason Stephenson <jstephenson@mvlc.org>
Mon, 5 Oct 2015 16:35:37 +0000 (12:35 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 5 Oct 2015 16:35:37 +0000 (12:35 -0400)
commitbd7df5bd5e19650591ce093230b744256e489f6f
tree9ccbb01865aa5fe3fd57a37618a86e455fad1197
parent885758d109d54169c5fa0d9a8c738f634b2a406b
LP 1502152: Improve marc_export warnings.

Trap warnings from MARC libraries in marc_export so we can report the
id of the record that triggered the warning.

Use warn to print our warnings, instead of print STDERR.  This includes
the existing errors, trapped by eval, that were being printed to STDERR.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/support-scripts/marc_export.in