From 5537e4fa3c51a1117a885b2a964b589be8afe110 Mon Sep 17 00:00:00 2001 From: CEL Dev Team Date: Fri, 5 Dec 2025 15:31:13 -0800 Subject: [PATCH] this will be removed from the CL shortly. PiperOrigin-RevId: 840900155 --- common/src/main/java/dev/cel/common/CelIssue.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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()) {