| Index: utils/pub/hosted_source.dart
|
| diff --git a/utils/pub/hosted_source.dart b/utils/pub/hosted_source.dart
|
| index 45867e5f924316a02b9d17e9460572780400f5b5..43922a21aae3287698e9f5f1fbe9737159b927a7 100644
|
| --- a/utils/pub/hosted_source.dart
|
| +++ b/utils/pub/hosted_source.dart
|
| @@ -41,7 +41,7 @@ class HostedSource extends Source {
|
| return doc['versions']
|
| .mappedBy((version) => new Version.parse(version))
|
| .toList();
|
| - }).transformException((ex) {
|
| + }).catchError((ex) {
|
| _throwFriendlyError(ex, parsed.first, parsed.last);
|
| });
|
| }
|
| @@ -55,7 +55,7 @@ class HostedSource extends Source {
|
|
|
| return httpClient.read(fullUrl).then((yaml) {
|
| return new Pubspec.parse(yaml, systemCache.sources);
|
| - }).transformException((ex) {
|
| + }).catchError((ex) {
|
| _throwFriendlyError(ex, id, parsed.last);
|
| });
|
| }
|
|
|