Change the error message

This commit is contained in:
Lukas Elmer
2016-09-29 19:06:32 +02:00
parent 3bd2226e35
commit 5c12fc556a
21 changed files with 48 additions and 48 deletions

View File

@@ -16504,7 +16504,7 @@ namespace ts {
if (!hasParseDiagnostics(sourceFile)) {
const start = getSpanOfTokenAtPosition(sourceFile, node.pos).start;
const end = node.statement.pos;
grammarErrorAtPos(sourceFile, start, end - start, Diagnostics.Unsupported_with_statement_all_symbols_within_a_with_block_will_be_resolved_to_any);
grammarErrorAtPos(sourceFile, start, end - start, Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);
}
}

View File

@@ -1279,7 +1279,7 @@
"category": "Error",
"code": 2409
},
"Unsupported 'with' statement, all symbols within a 'with' block will be resolved to 'any'.": {
"The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.": {
"category": "Error",
"code": 2410
},