Skip to content

Commit

Permalink
Merge pull request #1080 from NASA-PDS/reg-mgr-111
Browse files Browse the repository at this point in the history
Update exception to message handling
  • Loading branch information
jordanpadams authored Dec 9, 2024
2 parents 6b86387 + 779f8cc commit af3831b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import javax.xml.parsers.ParserConfigurationException;
import org.apache.commons.cli.ParseException;
import org.xml.sax.SAXException;
import gov.nasa.pds.registry.common.util.ExceptionUtils;
import gov.nasa.pds.validate.ri.CommandLineInterface;

public class ReferenceIntegrityMain {
Expand All @@ -13,7 +14,7 @@ public static void main(String[] args) {
try {
return_code = cli.process(args);
} catch (ParseException pe) {
System.err.println("[ERROR] " + pe.getMessage());
System.err.println("[ERROR] " + ExceptionUtils.getMessage(pe));
cli.help();
} catch (IOException | ParserConfigurationException | SAXException e) {
// do nothing because they are already logged.
Expand Down

0 comments on commit af3831b

Please sign in to comment.