#487: refextract: improve argument check
----------------------+----------------------
Reporter: simko | Owner: chayward
Type: defect | Status: assigned
Priority: minor | Milestone:
Component: BibEdit | Version:
Resolution: | Keywords:
----------------------+----------------------
Changes (by simko):
* status: in_merge => assigned
Comment:
Running refextract on a non-existent file does not report an error for
me; it produces empty output:
{{{
/opt/invenio/bin/refextract 1:/tmp/nonexistentfile.pdf
<?xml version="1.0" encoding="UTF-8"?>
<collection xmlns="http://www.loc.gov/MARC21/slim">
<record>
<controlfield tag="001">1</controlfield>
<datafield tag="999" ind1="C" ind2="6">
<subfield code="a">Invenio/1.0.0-rc0.40-106ba
refextract/1.0.0-rc0.40-106ba-1297762113-1-0-0-0-0-0-0</subfield>
</datafield>
</record>
</collection>
}}}
It should print an error message and exit with some error code
so that clients can know something went wrong. (e.g. workflow can
halt etc)
--
Ticket URL: <http://invenio-software.org/ticket/487#comment:4>
Invenio <http://invenio-software.org>