diff --git a/search-client/src/commonMain/kotlin/com/jillesvangurp/ktsearch/bulk-api.kt b/search-client/src/commonMain/kotlin/com/jillesvangurp/ktsearch/bulk-api.kt index 35fca95c..a664600c 100644 --- a/search-client/src/commonMain/kotlin/com/jillesvangurp/ktsearch/bulk-api.kt +++ b/search-client/src/commonMain/kotlin/com/jillesvangurp/ktsearch/bulk-api.kt @@ -114,7 +114,7 @@ interface BulkItemCallBack { fun bulkRequestFailed(e: Exception, ops: List>) } -class BulkException(bulkResponse: BulkResponse) : Exception( +class BulkException(val bulkResponse: BulkResponse) : Exception( "Bulk request completed with errors item statuses: [${ bulkResponse.itemDetails.map { (_, details) -> details.status }.distinct().joinToString(",") }]"