Skip to content

Commit

Permalink
Hide stacktrace for unexpected errors included in the validation report
Browse files Browse the repository at this point in the history
  • Loading branch information
costas80 committed Sep 12, 2024
1 parent 47813d6 commit 1cd8a24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ protected void validateNodesAgainstConstraint(Collection<RDFNode> focusNodes, Co
}
catch(Exception ex) {
Resource result = createResult(DASH.FailureResult, constraint, constraint.getShapeResource());
result.addProperty(SH.resultMessage, "Failed to create validator: " + ExceptionUtil.getStackTrace(ex));
result.addProperty(SH.resultMessage, "Failed to create validator: " + ex.getMessage());
return;
}
if(executor != null) {
Expand All @@ -622,7 +622,7 @@ protected void validateNodesAgainstConstraint(Collection<RDFNode> focusNodes, Co
}
catch(Exception ex) {
Resource result = createResult(DASH.FailureResult, constraint, constraint.getShapeResource());
result.addProperty(SH.resultMessage, "Exception during validation: " + ExceptionUtil.getStackTrace(ex));
result.addProperty(SH.resultMessage, "Exception during validation: " + ex.getMessage());
}
}
else {
Expand Down

0 comments on commit 1cd8a24

Please sign in to comment.