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

Unified Diff: utils/pub/pub.dart

Issue 11881032: Stop working around issue 7781 in Pub. (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
« no previous file with comments | « utils/pub/oauth2.dart ('k') | utils/pub/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index 157b6805154c42543d6c19ad7db9b2ece5c49250..ae6c13a7df77cf1cb532746fd7246244c88b7f84 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -262,7 +262,7 @@ abstract class PubCommand {
future
.then((_) => cache_.deleteTempDir())
.catchError((asyncError) {
- var e = getRealError(asyncError);
+ var e = asyncError.error;
if (e is PubspecNotFoundException && e.name == null) {
e = 'Could not find a file named "pubspec.yaml" in the directory '
'${path.current}.';
@@ -271,7 +271,7 @@ abstract class PubCommand {
'${basename(path.current)}").';
}
- handleError(e, getRealStackTrace(asyncError));
+ handleError(e, asyncError.stackTrace);
})
// Explicitly exit on success to ensure that any dangling dart:io handles
// don't cause the process to never terminate.
« no previous file with comments | « utils/pub/oauth2.dart ('k') | utils/pub/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698