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()) { for (String line : Benchmark.getAverages().asStringArray()) {
content.append(line).append("<br>"); content.append(line).append("<br>");
} }
} catch (ArrayIndexOutOfBoundsException e) { } catch (Exception e) {
content.append("ArrayIndexOutOfBoundsException on Benchmark.getAverages().asStringArray()"); content.append("Exception on Benchmark.getAverages().asStringArray()");
} }
content.append("&#96;&#96;&#96;</pre>"); content.append("&#96;&#96;&#96;</pre>");
} }