diff --git a/lib/context.js b/lib/context.js index afe5acb2..13998f7d 100644 --- a/lib/context.js +++ b/lib/context.js @@ -922,7 +922,7 @@ api.createTermDefinition = ({ const protectedMode = (options && options.protectedMode) || 'error'; if(protectedMode === 'error') { throw new JsonLdError( - 'Invalid JSON-LD syntax; tried to redefine a protected term.', + `Invalid JSON-LD syntax; tried to redefine "${term}" which is a protected term.`, 'jsonld.SyntaxError', {code: 'protected term redefinition', context: localCtx, term}); } else if(protectedMode === 'warn') {