Skip to content

Commit

Permalink
update exception to message handling (#220)
Browse files Browse the repository at this point in the history
Co-authored-by: Al Niessner <[email protected]>
  • Loading branch information
al-niessner and Al Niessner authored Dec 11, 2024
1 parent 6f75b22 commit 0cc8d09
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 0cc8d09

Please sign in to comment.