From 1cd8a2428b1c350d724f356cc60b0df90735bc9d Mon Sep 17 00:00:00 2001 From: simatosc Date: Thu, 12 Sep 2024 09:38:33 +0200 Subject: [PATCH] Hide stacktrace for unexpected errors included in the validation report --- .../java/org/topbraid/shacl/validation/ValidationEngine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/topbraid/shacl/validation/ValidationEngine.java b/src/main/java/org/topbraid/shacl/validation/ValidationEngine.java index d5c4b992..1ff2bc51 100644 --- a/src/main/java/org/topbraid/shacl/validation/ValidationEngine.java +++ b/src/main/java/org/topbraid/shacl/validation/ValidationEngine.java @@ -612,7 +612,7 @@ protected void validateNodesAgainstConstraint(Collection 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) { @@ -622,7 +622,7 @@ protected void validateNodesAgainstConstraint(Collection 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 {