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

Unified Diff: lib/src/build_result.dart

Issue 1947773002: Fix all strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/barback@master
Patch Set: Code review changes Created 4 years, 7 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 | « lib/src/asset/internal_asset.dart ('k') | lib/src/errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/build_result.dart
diff --git a/lib/src/build_result.dart b/lib/src/build_result.dart
index faeb2566a5fd746e29bbf630ed03810a7f72cf5e..fff2e249abcf6b6870d68b763fdd144d9df67577 100644
--- a/lib/src/build_result.dart
+++ b/lib/src/build_result.dart
@@ -44,7 +44,9 @@ class BuildResult {
return "errors:\n" + errors.map((error) {
var stackTrace = null;
- if (error is TransformerException || error is AssetLoadException) {
+ if (error is TransformerException) {
+ stackTrace = error.stackTrace.terse;
+ } else if (error is AssetLoadException) {
stackTrace = error.stackTrace.terse;
}
« no previous file with comments | « lib/src/asset/internal_asset.dart ('k') | lib/src/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698