Commit 341ea9e9 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Improve logging

parent f2c19a34
...@@ -55,7 +55,8 @@ class DocumentsSearchDocBuilder( ...@@ -55,7 +55,8 @@ class DocumentsSearchDocBuilder(
fun transform(key: String, input: Map<String, JsonObject>): Schema { fun transform(key: String, input: Map<String, JsonObject>): Schema {
val record = input[JsonUtility.recordTag] ?: throw InvalidInputException("No record defined in the message.") val record = input[JsonUtility.recordTag] ?:
throw InvalidInputException("No record defined in the message $key.")
val digitalObject = val digitalObject =
input.values.firstOrNull { it[Constants.atType] == RICO.Instantiation.uri input.values.firstOrNull { it[Constants.atType] == RICO.Instantiation.uri
&& it[RICO.type.localName] == RICO.Types.Instantiation.digitalObject } && it[RICO.type.localName] == RICO.Types.Instantiation.digitalObject }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment