Skip to content

Commit

Permalink
Remove confusing error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kwahlin committed Dec 11, 2024
1 parent 41d18a5 commit cc77e99
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2773,8 +2773,7 @@ class PostgreSQLComponent {
def allow = JsonLd.ALLOW_LINK_TO_DELETED + (jsonld?.cascadingDeleteRelations() ?: Collections.EMPTY_SET)
def referencedBy = followDependers(identifier, allow)
if (!referencedBy.isEmpty()) {
def referencedByStr = referencedBy.collect { shortId, path -> "$shortId at $path" }.join(', ')
throw new RuntimeException("Deleting depended upon records is not allowed. Referenced by: $referencedByStr")
throw new RuntimeException("Deleting depended upon records is not allowed.")
}
}

Expand Down

0 comments on commit cc77e99

Please sign in to comment.