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

Unified Diff: pkg/front_end/lib/src/fasta/source/stack_listener.dart

Issue 2685903002: Include stack in error about unhandled event. (Closed)
Patch Set: Created 3 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/front_end/lib/src/fasta/source/stack_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/stack_listener.dart b/pkg/front_end/lib/src/fasta/source/stack_listener.dart
index 0e03ae66ec42dd0d9141cf5eae139191bcf978ce..ba84564bccfc60afad28f77fff441728f7373544 100644
--- a/pkg/front_end/lib/src/fasta/source/stack_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/stack_listener.dart
@@ -113,8 +113,8 @@ abstract class StackListener extends Listener {
@override
void logEvent(String name) {
- print(" ${stack.join('\n ')}");
- internalError("Unhandled event: $name in $runtimeType $uri.");
+ internalError("Unhandled event: $name in $runtimeType $uri:\n"
+ " ${stack.join('\n ')}");
}
@override
« 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