From 4bba09a22e7b88a784be6a166023ac76607c5c1d Mon Sep 17 00:00:00 2001 From: Jonathan Percival Date: Mon, 13 May 2024 14:58:46 -0600 Subject: [PATCH] TEST: don't swallow exceptions --- .../java/org/opencds/cqf/tooling/processor/CqlProcessor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tooling/src/main/java/org/opencds/cqf/tooling/processor/CqlProcessor.java b/tooling/src/main/java/org/opencds/cqf/tooling/processor/CqlProcessor.java index 4e5a6ac00..1eb58ba4f 100644 --- a/tooling/src/main/java/org/opencds/cqf/tooling/processor/CqlProcessor.java +++ b/tooling/src/main/java/org/opencds/cqf/tooling/processor/CqlProcessor.java @@ -426,6 +426,7 @@ private void translateFile(LibraryManager libraryManager, File file, CqlCompiler } catch (Exception ex) { logger.logMessage(String.format("CQL Translation succeeded for file: '%s', but ELM generation failed with the following error: %s", file.getAbsolutePath(), ex.getMessage())); + throw ex; } } @@ -434,6 +435,7 @@ private void translateFile(LibraryManager libraryManager, File file, CqlCompiler } catch (Exception e) { result.getErrors().add(new ValidationMessage(ValidationMessage.Source.Publisher, IssueType.EXCEPTION, file.getName(), "CQL Processing failed with exception: "+e.getMessage(), IssueSeverity.ERROR)); + throw new RuntimeException(e); }