Skip to content

Commit ce7e489

Browse files
committed
GH-5178 backport of improved error message
1 parent 5c3b8c4 commit ce7e489

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

core/sail/shacl/src/main/java/org/eclipse/rdf4j/sail/shacl/ShapeValidationContainer.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,13 @@ public ValidationResultIterator performValidation() {
8282
validationResults = new ValidationResultIterator(iterator, effectiveValidationResultsLimitPerConstraint);
8383
return validationResults;
8484
} catch (Throwable e) {
85-
logger.warn("Error validating SHACL Shape {}", shape.getId(), e);
86-
logger.warn("Error validating SHACL Shape\n{}", shape, e);
85+
logger.warn("Internal error while trying to validate SHACL Shape {}", shape.getId(), e);
86+
logger.warn("Internal error while trying to validate SHACL Shape\n{}", shape, e);
8787
if (e instanceof Error) {
8888
throw e;
8989
}
90-
throw new SailException("Error validating SHACL Shape " + shape.getId() + "\n" + shape, e);
90+
throw new SailException(
91+
"Internal error while trying to validate SHACL Shape " + shape.getId() + "\n" + shape, e);
9192
} finally {
9293
handlePostLogging(before, validationResults);
9394
}

0 commit comments

Comments
 (0)