Skip to content

Commit

Permalink
Merge pull request #696 from catenax-ng/fix/sharing-error-too-long
Browse files Browse the repository at this point in the history
fix(Gate): error when persisting too long sharing process error messages
  • Loading branch information
nicoprow committed Jan 3, 2024
2 parents 3c795a8 + d8a34ce commit c92fdc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class GoldenRecordTaskService(
SharingStateService.ErrorRequest(
SharingStateService.SharingStateIdentifierDto(sharingState.externalId, sharingState.businessPartnerType),
BusinessPartnerSharingError.SharingProcessError,
if (task.processingState.errors.isNotEmpty()) task.processingState.errors.joinToString(" // ") { it.description } else null
if (task.processingState.errors.isNotEmpty()) task.processingState.errors.joinToString(" // ") { it.description }.take(256) else null
)
} ?: emptyList()).toMutableList()

Expand Down

0 comments on commit c92fdc6

Please sign in to comment.