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

Unified Diff: utils/pub/command_uploader.dart

Issue 11830017: Fix ALL the pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: utils/pub/command_uploader.dart
diff --git a/utils/pub/command_uploader.dart b/utils/pub/command_uploader.dart
index 46b0ea0c6dd327864a5f7439856a446bdcb05e89..ef37210b975be86baa71a43ec93575cd84ea9b1c 100644
--- a/utils/pub/command_uploader.dart
+++ b/utils/pub/command_uploader.dart
@@ -17,6 +17,7 @@ import 'io.dart';
import 'log.dart' as log;
import 'oauth2.dart' as oauth2;
import 'pub.dart';
+import 'utils.dart';
/// Handles the `uploader` pub command.
class UploaderCommand extends PubCommand {
@@ -75,8 +76,9 @@ class UploaderCommand extends PubCommand {
return client.delete(url);
}
});
- }).then(handleJsonSuccess).catchError((e) {
- if (e is! PubHttpException) throw e;
+ }).then(handleJsonSuccess).catchError((asyncError) {
+ var e = getRealError(asyncError);
+ if (e is! PubHttpException) throw asyncError;
handleJsonError(e.response);
});
}
« no previous file with comments | « utils/pub/command_lish.dart ('k') | utils/pub/curl_client.dart » ('j') | utils/pub/git.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698