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

Unified Diff: pkg/analyzer/lib/src/error/codes.dart

Issue 2662483003: Better error message for missing async with await (Closed)
Patch Set: Created 3 years, 11 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/analysis_server/test/services/correction/fix_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/error/codes.dart
diff --git a/pkg/analyzer/lib/src/error/codes.dart b/pkg/analyzer/lib/src/error/codes.dart
index 9b4b73df12512150a33610531e7dcdac49744eb9..b689d48e1fb95babb075affe88c21e131f78d7f6 100644
--- a/pkg/analyzer/lib/src/error/codes.dart
+++ b/pkg/analyzer/lib/src/error/codes.dart
@@ -4542,7 +4542,7 @@ class StaticWarningCode extends ErrorCode {
static const StaticWarningCode UNDEFINED_IDENTIFIER_AWAIT =
const StaticWarningCode(
'UNDEFINED_IDENTIFIER_AWAIT',
- "Undefined name 'await'.",
+ "Undefined name 'await' in function body not marked with 'async'",
Brian Wilkerson 2017/01/27 18:41:56 Please add a period.
"Try correcting the name to one that is defined, "
"defining the name, or "
"adding 'async' to the enclosing function body.");
« no previous file with comments | « pkg/analysis_server/test/services/correction/fix_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698