diff --git a/src/main/java/gov/cms/mat/cql_elm_translation/service/filters/CqlTranslatorExceptionFilter.java b/src/main/java/gov/cms/mat/cql_elm_translation/service/filters/CqlTranslatorExceptionFilter.java index afd2bd5..05dafe2 100644 --- a/src/main/java/gov/cms/mat/cql_elm_translation/service/filters/CqlTranslatorExceptionFilter.java +++ b/src/main/java/gov/cms/mat/cql_elm_translation/service/filters/CqlTranslatorExceptionFilter.java @@ -123,8 +123,9 @@ private List filterOutCustomErrors( return filteredCqlTranslatorExceptions.stream() .filter( cqlCompilerException -> - !"no viable alternative at input 'define :'" - .equalsIgnoreCase(cqlCompilerException.getMessage())) + !cqlCompilerException + .getMessage() + .contains("no viable alternative at input 'define")) .toList(); } }