| Index: tests/compiler/dart2js/output_collector.dart
|
| diff --git a/tests/compiler/dart2js/output_collector.dart b/tests/compiler/dart2js/output_collector.dart
|
| index 20d85408221c4dd7d966714360970921c510c323..0aa2480bda12603e4d3b365509ae6c8d0bd767a7 100644
|
| --- a/tests/compiler/dart2js/output_collector.dart
|
| +++ b/tests/compiler/dart2js/output_collector.dart
|
| @@ -44,9 +44,17 @@ class OutputCollector implements CompilerOutput {
|
|
|
| String getOutput(String name, OutputType type) {
|
| Map<String, BufferedOutputSink> sinkMap = outputMap[type];
|
| - if (sinkMap == null) return null;
|
| + if (sinkMap == null) {
|
| + print("No output available for $type.");
|
| + return null;
|
| + }
|
| BufferedOutputSink sink = sinkMap[name];
|
| - return sink != null ? sink.text : null;
|
| + if (sink == null) {
|
| + print("Output '$name' not found for $type. Available: ${sinkMap.keys}");
|
| + return null;
|
| + } else {
|
| + return sink.text;
|
| + }
|
| }
|
|
|
| /// `true` if any output has been collected.
|
|
|