Skip to content

Commit 32cc77e

Browse files
committed
minor debugging update.
1 parent c0ee77e commit 32cc77e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/json/ld/context.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,8 @@ def create_term_definition(local_context, term, defined, override_protected: fal
933933

934934
if value.has_key?('@index')
935935
# property-based indexing
936-
raise JsonLdError::InvalidTermDefinition, "@index without @index in @container: #{term} on term #{term.inspect}" unless definition.container_mapping.include?('@index')
937-
raise JsonLdError::InvalidTermDefinition, "@index must expand to an IRI: #{term} on term #{term.inspect}" unless value['@index'].is_a?(String) && !value['@index'].start_with?('@')
936+
raise JsonLdError::InvalidTermDefinition, "@index without @index in @container: #{value['@index']} on term #{term.inspect}" unless definition.container_mapping.include?('@index')
937+
raise JsonLdError::InvalidTermDefinition, "@index must expand to an IRI: #{value['@index']} on term #{term.inspect}" unless value['@index'].is_a?(String) && !value['@index'].start_with?('@')
938938
definition.index = value['@index'].to_s
939939
end
940940

0 commit comments

Comments
 (0)