Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Unified Diff: utils/pub/hosted_source.dart

Issue 11785028: Commit Martin's patch for pub + lib_v2. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/pub/command_version.dart ('k') | utils/pub/http.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
});
}
« no previous file with comments | « utils/pub/command_version.dart ('k') | utils/pub/http.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698