Skip to content

Commit

Permalink
update exception to message handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Niessner authored and Al Niessner committed Dec 4, 2024
1 parent f88af3d commit 4304b0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/gov/nasa/pds/harvest/HarvestCli.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 4304b0f

Please sign in to comment.