Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions common/src/main/java/dev/cel/common/CelIssue.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,7 @@ public static String toDisplayString(Collection<CelIssue> 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<String> optionalSnippet = source.getSnippet(getSourceLocation().getLine());
if (optionalSnippet.isPresent()) {
Expand Down
Loading