Skip to content

Commit edae3d9

Browse files
committed
Match spec error code "invalid context entry".
Tests were also using "invalid context member" and have been updated to match the spec.
1 parent 05186bf commit edae3d9

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
@@ -274,7 +274,7 @@ api.process = async ({
274274
'Invalid JSON-LD syntax; @import not compatible with ' +
275275
activeCtx.processingMode,
276276
'jsonld.SyntaxError',
277-
{code: 'invalid context member', context: ctx});
277+
{code: 'invalid context entry', context: ctx});
278278
}
279279
if(!_isString(value)) {
280280
throw new JsonLdError(
@@ -300,7 +300,7 @@ api.process = async ({
300300
throw new JsonLdError(
301301
'Invalid JSON-LD syntax; imported context must not include @import.',
302302
'jsonld.SyntaxError',
303-
{code: 'invalid context member', context: localCtx});
303+
{code: 'invalid context entry', context: localCtx});
304304
}
305305

306306
// merge ctx into importCtx and replace rval with the result

0 commit comments

Comments
 (0)