| Index: utils/pub/command_uploader.dart
|
| diff --git a/utils/pub/command_uploader.dart b/utils/pub/command_uploader.dart
|
| index ef37210b975be86baa71a43ec93575cd84ea9b1c..eb3cd4ac0f0a685429a09efc37d590d82158c646 100644
|
| --- a/utils/pub/command_uploader.dart
|
| +++ b/utils/pub/command_uploader.dart
|
| @@ -77,9 +77,8 @@ class UploaderCommand extends PubCommand {
|
| }
|
| });
|
| }).then(handleJsonSuccess).catchError((asyncError) {
|
| - var e = getRealError(asyncError);
|
| - if (e is! PubHttpException) throw asyncError;
|
| - handleJsonError(e.response);
|
| + if (asyncError.error is! PubHttpException) throw asyncError;
|
| + handleJsonError(asyncError.error.response);
|
| });
|
| }
|
| }
|
|
|