From 1f0e3c90d4ebdbee4ed976808870c0ccd8b83a3a Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Wed, 10 Oct 2018 12:06:33 +0300 Subject: [PATCH] more diagnostic --- .../java/codeInspection/InspectionResultExportTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/java/java-tests/testSrc/com/intellij/java/codeInspection/InspectionResultExportTest.java b/java/java-tests/testSrc/com/intellij/java/codeInspection/InspectionResultExportTest.java index 2982e27521f2..3a7296b27309 100644 --- a/java/java-tests/testSrc/com/intellij/java/codeInspection/InspectionResultExportTest.java +++ b/java/java-tests/testSrc/com/intellij/java/codeInspection/InspectionResultExportTest.java @@ -144,7 +144,12 @@ public class InspectionResultExportTest extends LightJava9ModulesCodeInsightFixt return JDOMUtil.loadDocument(file); } catch (IOException | JDOMException e) { - throw new AssertionError(e); + String content = null; + try { + content = FileUtil.loadFile(file); + } + catch (IOException ignored) {} + throw new AssertionError("cannot parse: " + content, e); } }