change error message

This commit is contained in:
Yuichi Nukiyama
2016-09-24 10:18:49 +09:00
parent 36d493eaa8
commit e65cdc3953
6 changed files with 45 additions and 4 deletions

View File

@@ -17650,7 +17650,7 @@ namespace ts {
const container = node.parent.kind === SyntaxKind.SourceFile ? <SourceFile>node.parent : <ModuleDeclaration>node.parent.parent;
if (container.kind === SyntaxKind.ModuleDeclaration && !isAmbientModule(container)) {
error(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace);
error(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);
return;
}
// Grammar checking

View File

@@ -195,7 +195,7 @@
"category": "Error",
"code": 1062
},
"An export assignment cannot be used in a namespace.": {
"A default export can only be used in an ECMAScript-style module.": {
"category": "Error",
"code": 1063
},