Skip to content

Commit 5537e4f

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
this will be removed from the CL shortly.
PiperOrigin-RevId: 840900155
1 parent 8b4c579 commit 5537e4f

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

common/src/main/java/dev/cel/common/CelIssue.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,7 @@ public static String toDisplayString(Collection<CelIssue> issues, Source source)
9999
/** Returns a string representing this error that is suitable for displaying to humans. */
100100
public String toDisplayString(Source source) {
101101
// Based onhttps://github.com/google/cel-go/blob/v0.5.1/common/error.go#L42.
102-
String result =
103-
SafeStringFormatter.format(
104-
"%s: %s:%d:%d: %s",
105-
getSeverity(),
106-
source.getDescription(),
107-
getSourceLocation().getLine(),
108-
getSourceLocation().getColumn() + 1,
109-
getMessage());
102+
String result = SafeStringFormatter.format("%s", getMessage());
110103
if (!CelSourceLocation.NONE.equals(getSourceLocation())) {
111104
Optional<String> optionalSnippet = source.getSnippet(getSourceLocation().getLine());
112105
if (optionalSnippet.isPresent()) {

0 commit comments

Comments
 (0)