Improved exception catch for #464

This commit is contained in:
Rsl1122 2017-12-08 09:29:02 +02:00
parent a277bf969c
commit b4deb1a9b4

View File

@ -159,8 +159,8 @@ public class DebugPageResponse extends ErrorResponse {
for (String line : Benchmark.getAverages().asStringArray()) {
content.append(line).append("<br>");
}
} catch (ArrayIndexOutOfBoundsException e) {
content.append("ArrayIndexOutOfBoundsException on Benchmark.getAverages().asStringArray()");
} catch (Exception e) {
content.append("Exception on Benchmark.getAverages().asStringArray()");
}
content.append("&#96;&#96;&#96;</pre>");
}