diff --git a/test/hotspot/jtreg/runtime/Vitals/VitalsUtils.java b/test/hotspot/jtreg/runtime/Vitals/VitalsUtils.java index 9723ddc8cf8..620a3e41620 100644 --- a/test/hotspot/jtreg/runtime/Vitals/VitalsUtils.java +++ b/test/hotspot/jtreg/runtime/Vitals/VitalsUtils.java @@ -73,7 +73,8 @@ static int matchPatterns(String[] lines, int startAtLine, String[] regexes) { nLine ++; } if (nextToMatch < regexes.length) { - throw new RuntimeException("Not all matches found. First missing pattern " + nextToMatch + ":" + regexes[nextToMatch]); + throw new RuntimeException("Not all matches found. First missing pattern " + nextToMatch + ":" + regexes[nextToMatch] + + "\nOutput: " + String.join("\n", lines)); } return nLine; }