Skip to content

Commit

Permalink
#3735: removed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 23, 2024
1 parent 86ab8a2 commit 0449fb2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions eo-runtime/src/main/java/org/eolang/PhSafe.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,6 @@ private static <T> T through(final Action<T> action) {
*/
private static String message(final Throwable exp) {
final StringBuilder ret = new StringBuilder(0);
if (!(exp instanceof ExFailure)) {
final StackTraceElement[] stack = exp.getStackTrace();
if (stack.length > 0) {
final StackTraceElement last = stack[0];
ret.append(last.getFileName());
ret.append(':');
ret.append(last.getLineNumber());
ret.append(' ');
}
ret.append(exp.getClass().getSimpleName());
}
if (exp.getMessage() != null) {
if (ret.length() > 0) {
ret.append(": ");
Expand Down

0 comments on commit 0449fb2

Please sign in to comment.