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

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

Issue 2662483003: Better error message for missing async with await (Closed)
Patch Set: Add a period at the end of the sentence 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..edf85a89c7ccecd623ecdf38fe38a69688cf4bb6 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'.",
"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