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

Unified Diff: sdk/lib/_internal/pub/bin/pub.dart

Issue 354663008: Clean up pub's exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 6 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 | « no previous file | sdk/lib/_internal/pub/lib/src/barback/cycle_exception.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/bin/pub.dart
diff --git a/sdk/lib/_internal/pub/bin/pub.dart b/sdk/lib/_internal/pub/bin/pub.dart
index 35830f8c6fbef4abe8678baf31ec9d3ca9b4606d..7c594270d823fa96f0774742cf349d75f6caf0f8 100644
--- a/sdk/lib/_internal/pub/bin/pub.dart
+++ b/sdk/lib/_internal/pub/bin/pub.dart
@@ -12,6 +12,7 @@ import 'package:source_maps/source_maps.dart';
import 'package:stack_trace/stack_trace.dart';
import '../lib/src/command.dart';
+import '../lib/src/exceptions.dart';
import '../lib/src/exit_codes.dart' as exit_codes;
import '../lib/src/http.dart';
import '../lib/src/io.dart';
@@ -109,9 +110,9 @@ void runPub(String cacheDir, ArgResults options, List<String> arguments) {
log.fine(chain.terse);
}
- if (error is ApplicationException && error.innerError != null) {
+ if (error is WrappedException && error.innerError != null) {
var message = "Wrapped exception: ${error.innerError}";
- if (error.innerTrace != null) message = "$message\n${error.innerTrace}";
+ if (error.innerChain != null) message = "$message\n${error.innerChain}";
log.fine(message);
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/barback/cycle_exception.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698