diff --git a/src/main/java/gov/nasa/pds/harvest/HarvestCli.java b/src/main/java/gov/nasa/pds/harvest/HarvestCli.java index 559ccac..9687811 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; } }