Skip to content

Commit

Permalink
GH-5178 backport of improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hmottestad committed Nov 7, 2024
1 parent 5c3b8c4 commit ce7e489
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,13 @@ public ValidationResultIterator performValidation() {
validationResults = new ValidationResultIterator(iterator, effectiveValidationResultsLimitPerConstraint);
return validationResults;
} catch (Throwable e) {
logger.warn("Error validating SHACL Shape {}", shape.getId(), e);
logger.warn("Error validating SHACL Shape\n{}", shape, e);
logger.warn("Internal error while trying to validate SHACL Shape {}", shape.getId(), e);
logger.warn("Internal error while trying to validate SHACL Shape\n{}", shape, e);
if (e instanceof Error) {
throw e;
}
throw new SailException("Error validating SHACL Shape " + shape.getId() + "\n" + shape, e);
throw new SailException(
"Internal error while trying to validate SHACL Shape " + shape.getId() + "\n" + shape, e);
} finally {
handlePostLogging(before, validationResults);
}
Expand Down

0 comments on commit ce7e489

Please sign in to comment.