Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index 6fe24b5ed93e902cdfededb038587572b2919a73..9d2b6085f8c25eb798613e71178493d330607b80 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -834,9 +834,9 @@ abstract class Descriptor { |
var error = new StringBuffer(); |
error.add("No files named $name in $dir were valid:\n"); |
for (var failure in failures) { |
- error.add(" ").add(failure).add("\n"); |
+ error.add(" $failure\n"); |
} |
- completer.completeException( |
+ completer.completeError( |
new ExpectException(error.toString()), stackTrace); |
} |
@@ -851,7 +851,7 @@ abstract class Descriptor { |
future.then((_) { |
successes++; |
checkComplete(); |
- }).catchError(() {}); |
+ }).catchError((_) {}); |
} |
return completer.future; |
}); |