Skip to content

Commit

Permalink
improve toIOException cause
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Nov 6, 2023
1 parent 8ceb2cc commit 6da7064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/lucee/commons/lang/ExceptionUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static IOException toIOException(Throwable t) {
if (t instanceof NativeException) return toIOException(((NativeException) t).getCause());

IOException ioe = new IOException(t.getClass().getName() + ":" + t.getMessage());
ioe.setStackTrace(t.getStackTrace());
ioe.initCause(t);
return ioe;
}

Expand Down

0 comments on commit 6da7064

Please sign in to comment.