Index: tests/compiler/dart2js/mock_compiler.dart |
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart |
index 5c3301149f03afc0b48ab8851b8b4927fd274e24..7456c291e470acbd5caa87b4513524eb11057d5b 100644 |
--- a/tests/compiler/dart2js/mock_compiler.dart |
+++ b/tests/compiler/dart2js/mock_compiler.dart |
@@ -220,9 +220,10 @@ class MockCompiler extends Compiler { |
if (diagnosticHandler != null) { |
SourceSpan span = message.sourceSpan; |
if (span != null) { |
- diagnosticHandler(span.uri, span.begin, span.end, '$message', kind); |
+ diagnosticHandler( |
+ span.uri, span.begin, span.end, '${message.message}', kind); |
} else { |
- diagnosticHandler(null, null, null, '$message', kind); |
+ diagnosticHandler(null, null, null, '${message.message}', kind); |
} |
} |
} |