Skip to content

Commit 271c52a

Browse files
committed
Fix error message typos.
1 parent 0db6913 commit 271c52a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/context.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ api.createTermDefinition = (
494494
let type = value['@type'];
495495
if(!_isString(type)) {
496496
throw new JsonLdError(
497-
'Invalid JSON-LD syntax; an @context @type values must be a string.',
497+
'Invalid JSON-LD syntax; an @context @type value must be a string.',
498498
'jsonld.SyntaxError',
499499
{code: 'invalid type mapping', context: localCtx});
500500
}
@@ -513,7 +513,7 @@ api.createTermDefinition = (
513513
}
514514
if(type.indexOf('_:') === 0) {
515515
throw new JsonLdError(
516-
'Invalid JSON-LD syntax; an @context @type values must be an IRI, ' +
516+
'Invalid JSON-LD syntax; an @context @type value must be an IRI, ' +
517517
'not a blank node identifier.',
518518
'jsonld.SyntaxError',
519519
{code: 'invalid type mapping', context: localCtx});

0 commit comments

Comments
 (0)