Skip to content

Commit

Permalink
[improve][core] improve exception output
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed May 24, 2024
1 parent beaebe0 commit b7350fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion core/src/main/java/com/wgzhao/addax/core/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ public static void main(String[] args) {
LOG.error("need a job file");
System.exit(1);
}

try {
Engine.entry(args);
} catch (Throwable e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static String trace(Throwable e) {
sb.append(e.toString()).append("\n");
StackTraceElement[] stackTrace = e.getStackTrace();
for (StackTraceElement stackTraceElement : stackTrace) {
sb.append("\tat ").append(stackTraceElement).append("\n");
sb.append("\t").append(stackTraceElement).append("\n");
}
return sb.toString();
}
Expand Down

0 comments on commit b7350fc

Please sign in to comment.