Skip to content

Commit

Permalink
MAT-7995 filter out err msg when define lacks name
Browse files Browse the repository at this point in the history
  • Loading branch information
sb-cecilialiu committed Dec 17, 2024
1 parent 59dd4d3 commit 27af4db
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ public List<CqlCompilerException> filter() {
return newList;
}

/*
* MAT-7995: error: "No Viable Input at 'define :'"
* should be customized as: "Definition is missing a name."
* This is done in cql-antlr-parse, so on the frontend we don't want a duplicate error message
* therefore we are filtering it out here.
*/
private List<CqlCompilerException> filterOutWarnings() {
if (showWarnings) {
return cqlTranslatorExceptions;
Expand Down Expand Up @@ -118,6 +112,12 @@ private List<CqlCompilerException> filterBySyntax(
.toList();
}

/*
* MAT-7995: error: "No Viable Input at 'define :'"
* should be customized as: "Definition is missing a name."
* This is done in cql-antlr-parse, so on the frontend we don't want a duplicate error message
* therefore we are filtering it out here.
*/
private List<CqlCompilerException> filterOutCustomErrors(
List<CqlCompilerException> filteredCqlTranslatorExceptions) {
return filteredCqlTranslatorExceptions.stream()
Expand Down

0 comments on commit 27af4db

Please sign in to comment.