Skip to content

Commit

Permalink
⚡ DiSky exceptions will now always show the whole stack trace if debu…
Browse files Browse the repository at this point in the history
…g mode is activated
  • Loading branch information
ItsTheSky committed Oct 8, 2024
1 parent d8f9eae commit 3b5883b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ public DiSkyErrorHandler() {
previous = m;
}

if (ConfigManager.get("debug", false)) {
msg.add("");
msg.add("&4Full Stacktrace:");
msg.add("");
for (StackTraceElement line : ex.getStackTrace())
msg.add(line.toString());
}

return msg.toArray(new String[0]);
});

Expand Down

0 comments on commit 3b5883b

Please sign in to comment.