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

Unified Diff: pkg/analyzer/lib/src/task/driver.dart

Issue 1673433002: Fix error plumbing in WorkItem (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/driver.dart
diff --git a/pkg/analyzer/lib/src/task/driver.dart b/pkg/analyzer/lib/src/task/driver.dart
index 0f3b523435d941f418f24c1c50bd56766d4ce2b5..a041729d53e56ee3711d044f40ffe6a445942d19 100644
--- a/pkg/analyzer/lib/src/task/driver.dart
+++ b/pkg/analyzer/lib/src/task/driver.dart
@@ -722,11 +722,10 @@ class WorkItem {
this.exception = new CaughtException(exception, stackTrace);
return null;
} catch (exception, stackTrace) {
- this.exception = new CaughtException(
- throw new AnalysisException(
- 'Cannot create work order to build $inputResult for $inputTarget',
- exception),
- stackTrace);
+ this.exception = new CaughtException(exception, stackTrace);
+ throw new AnalysisException(
+ 'Cannot create work order to build $inputResult for $inputTarget',
+ this.exception);
return null;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698