diff --git a/common/src/main/java/dev/cel/common/CelIssue.java b/common/src/main/java/dev/cel/common/CelIssue.java index 4de369470..4a8d056e5 100644 --- a/common/src/main/java/dev/cel/common/CelIssue.java +++ b/common/src/main/java/dev/cel/common/CelIssue.java @@ -99,14 +99,7 @@ public static String toDisplayString(Collection issues, Source source) /** Returns a string representing this error that is suitable for displaying to humans. */ public String toDisplayString(Source source) { // Based onhttps://github.com/google/cel-go/blob/v0.5.1/common/error.go#L42. - String result = - SafeStringFormatter.format( - "%s: %s:%d:%d: %s", - getSeverity(), - source.getDescription(), - getSourceLocation().getLine(), - getSourceLocation().getColumn() + 1, - getMessage()); + String result = SafeStringFormatter.format("%s", getMessage()); if (!CelSourceLocation.NONE.equals(getSourceLocation())) { Optional optionalSnippet = source.getSnippet(getSourceLocation().getLine()); if (optionalSnippet.isPresent()) {