Skip to content

Commit

Permalink
fix: grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
koladilip committed Jun 10, 2024
1 parent 7f18f51 commit cf4a957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ export class JsonTemplateParser {
const contextVar = this.getObjectPropContextVar();
const key = this.parseObjectKeyExpr();
if (contextVar && typeof key === 'string') {
throw new JsonTemplateParserError('Context prop is should be used with key expression');
throw new JsonTemplateParserError('Context prop should be used with a key expression');
}
this.lexer.expect(':');
const value = this.parseBaseExpr();
Expand Down
2 changes: 1 addition & 1 deletion test/scenarios/objects/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const data: Scenario[] = [
},
{
templatePath: 'invalid_context_prop.jt',
error: 'Context prop is should be used with key expression',
error: 'Context prop should be used with a key expression',
},
{
output: {
Expand Down

0 comments on commit cf4a957

Please sign in to comment.