Minor change in an error message

This commit is contained in:
Peeyush Kushwaha 2017-06-23 22:04:35 +05:30
parent 2c8fc75643
commit c3b992e031
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ export default class StatementParser extends ExpressionParser {
// special error for the common case of @dec export class
if (!allowExport && this.match(tt._export)) {
this.raise(this.state.start, "Using the export keyword between decorators and class is disallowed. Please use `export @dec class` instead");
this.raise(this.state.start, "Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead");
}
if (!this.match(tt._class)) {

View File

@ -1,4 +1,4 @@
{
"sourceType": "module",
"throws": "Using the export keyword between decorators and class is disallowed. Please use `export @dec class` instead (2:0)"
"throws": "Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead (2:0)"
}