Skip to content

Commit 20644f4

Browse files
gkelloggdavidlehn
andcommitted
Apply suggestions from @davidlehn code review
Co-Authored-By: David I. Lehn <[email protected]>
1 parent d029299 commit 20644f4

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
@@ -530,8 +530,8 @@ api.createTermDefinition = ({
530530
if((type === '@json' || type === '@none')) {
531531
if(api.processingMode(activeCtx, 1.0)) {
532532
throw new JsonLdError(
533-
'Invalid JSON-LD syntax; an @context @type value not be ' +
534-
'#{type} in JSON-LD 1.0 mode.',
533+
'Invalid JSON-LD syntax; an @context @type value must not be ' +
534+
`"${type}" in JSON-LD 1.0 mode.`,
535535
'jsonld.SyntaxError',
536536
{code: 'invalid type mapping', context: localCtx});
537537
}

0 commit comments

Comments
 (0)