Index: tests/compiler/dart2js/mock_compiler.dart |
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart |
index cda5aa61775e9950d3e3a627a266da77217feb9f..4ae9430a65d46c43a356bc6ca87533b377cafb7c 100644 |
--- a/tests/compiler/dart2js/mock_compiler.dart |
+++ b/tests/compiler/dart2js/mock_compiler.dart |
@@ -370,7 +370,8 @@ void compareMessageKinds(String text, |
} |
if (foundIterator.hasNext) { |
do { |
- print('Additional $kind "${foundIterator.next()}"'); |
+ WarningMessage message = foundIterator.next(); |
+ print('Additional $kind "${message}: ${message.message}"'); |
} while (foundIterator.hasNext); |
fail('Too many ${kind}s'); |
} |