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

Unified Diff: pkg/front_end/messages.yaml

Issue 2765253002: Report error on only-try block. (Closed)
Patch Set: Created 3 years, 9 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 | « pkg/front_end/lib/src/fasta/problems.dart ('k') | pkg/front_end/tool/_fasta/generate_messages.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/messages.yaml
diff --git a/pkg/front_end/messages.yaml b/pkg/front_end/messages.yaml
index 19ef8d44bfb2903eea14db2847fb4e27c4aef297..19a25da37845936bc4769b0603935d514248a77a 100644
--- a/pkg/front_end/messages.yaml
+++ b/pkg/front_end/messages.yaml
@@ -327,3 +327,8 @@ YieldAsIdentifier:
YieldNotGenerator:
template: "'yield' can only be used in 'sync*' or 'async*' methods."
+
+OnlyTry:
+ template: "Try block should be followed by 'on', 'catch', or 'finally' block."
+ tip: "Did you forget to add a 'finally' block?"
+ statement: "try {}"
« no previous file with comments | « pkg/front_end/lib/src/fasta/problems.dart ('k') | pkg/front_end/tool/_fasta/generate_messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698