From 4304b0f15b71622427250e1a6e2abe1ab8af8216 Mon Sep 17 00:00:00 2001 From: Al Niessner Date: Wed, 4 Dec 2024 08:41:09 -0800 Subject: [PATCH] update exception to message handling --- src/main/java/gov/nasa/pds/harvest/HarvestCli.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/gov/nasa/pds/harvest/HarvestCli.java b/src/main/java/gov/nasa/pds/harvest/HarvestCli.java index 559ccacb..9687811f 100644 --- a/src/main/java/gov/nasa/pds/harvest/HarvestCli.java +++ b/src/main/java/gov/nasa/pds/harvest/HarvestCli.java @@ -96,7 +96,7 @@ private boolean runCommand() String msg = ExceptionUtils.getMessage(ex); Logger log = LogManager.getLogger(this.getClass()); log.error(msg); - log.debug("", ex); + log.debug("for the stack trace", ex); return false; } } @@ -168,7 +168,7 @@ private boolean parse(String[] args) } catch(ParseException ex) { - System.out.println("[ERROR] " + ex.getMessage()); + System.out.println("[ERROR] " + ExceptionUtils.getMessage(ex)); return false; } }