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

Unified Diff: lib/logging.dart

Issue 1284983004: Also generate error when autogenerating stack traces (fix #25) (Closed) Base URL: git@github.com:dart-lang/logging.git@master
Patch Set: Created 5 years, 4 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/logging.dart
diff --git a/lib/logging.dart b/lib/logging.dart
index f108ed3b96629cdd08c76bd0635162875d3a1ecb..f7a7cf4ef1b0f4d460dd84ab786d512abd0d95b6 100644
--- a/lib/logging.dart
+++ b/lib/logging.dart
@@ -160,6 +160,7 @@ class Logger {
throw "autogenerated stack trace for $logLevel $message";
} catch (e, t) {
stackTrace = t;
+ if (error == null) error = e;
}
}
if (zone == null) zone = Zone.current;
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698