Skip to content

Commit

Permalink
Report Throwable's type too.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoodiupui committed Jul 28, 2023
1 parent 22974e9 commit d6b612f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dspace-api/src/main/java/org/dspace/util/ThrowableUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ static public String formatCauseChain(Throwable throwable) {
trace.append(throwable.getMessage());
Throwable cause = throwable.getCause();
while (null != cause) {
trace.append("\nCaused by: ").append(cause.getMessage());
trace.append("\nCaused by: ")
.append(cause.getClass().getCanonicalName()).append(' ')
.append(cause.getMessage());
cause = cause.getCause();
}
return trace.toString();
Expand Down

0 comments on commit d6b612f

Please sign in to comment.