| Index: utils/tests/pub/test_pub.dart
|
| diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
|
| index 56c298785f7e500e5d2f56ee27b7738c7a6de442..f96a3e2a134da0038de7fdbf4d7717f19806732f 100644
|
| --- a/utils/tests/pub/test_pub.dart
|
| +++ b/utils/tests/pub/test_pub.dart
|
| @@ -848,6 +848,14 @@ abstract class Descriptor {
|
| });
|
| }
|
|
|
| + // TODO(nweiz): remove this when issue 4061 is fixed.
|
| + var stackTrace;
|
| + try {
|
| + throw null;
|
| + } catch (_, localStackTrace) {
|
| + stackTrace = localStackTrace;
|
| + }
|
| +
|
| return listDir(dir).chain((files) {
|
| var matches = files.filter((file) => endsWithPattern(file, name));
|
| if (matches.length == 0) {
|
| @@ -870,7 +878,8 @@ abstract class Descriptor {
|
| for (var failure in failures) {
|
| error.add(" ").add(failure).add("\n");
|
| }
|
| - completer.completeException(new ExpectException(error.toString()));
|
| + completer.completeException(
|
| + new ExpectException(error.toString()), stackTrace);
|
| }
|
|
|
| for (var match in matches) {
|
|
|