NASA-PDS / mi-label

Metadata Injector for PDS Labels (MILabel) provides a command-line interface for generating PDS4 Labels using a user provided PDS4 XML template and input (source) data products.
https://nasa-pds.github.io/mi-label/
Other
3 stars 1 forks source link

Improved exception handling and logging to support off-nominal use cases #65

Closed jordanpadams closed 9 months ago

jordanpadams commented 9 months ago

🗒️ Summary

⚙️ Test Data and/or Report

See #64

$ pds-generate --template ~/test/mi-label-bug/lola_900Crdr_template.xml --pds3-label ~/test/mi-label-bug/LOLARDR_230741421.LBL

[main] INFO gov.nasa.pds.imaging.generate.label.PDS3Label - ParserType: VICAR
[main] ERROR gov.nasa.pds.imaging.generate.label.ItemNode - IndexOutOfBoundsException: SOURCE_PRODUCT_ID[1] does not exist. 1 values found.
[main] INFO gov.nasa.pds.imaging.generate.Generator - New PDS4 Label: /Users/jpadams/test/mi-label-bug/LOLARDR_230741421.xml

♻️ Related Issues

Resolves #64