mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
[TASK] Added exception type to file name
This commit is contained in:
@@ -39,7 +39,7 @@ public class FileExceptionHandler extends ExceptionHandler {
|
||||
|
||||
@Override
|
||||
public void handle(Throwable e) {
|
||||
File report = new File(this.reportsDirectory, "report-" + (System.currentTimeMillis() / 1000) + ".txt");
|
||||
File report = new File(this.reportsDirectory, "report-" + this.getExceptionType().getName().toLowerCase() + "-" + (System.currentTimeMillis() / 1000) + ".txt");
|
||||
try {
|
||||
report.createNewFile();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user