Skip to content

Commit

Permalink
TEST: don't swallow exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
JPercival committed May 13, 2024
1 parent b69379e commit 4bba09a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand All @@ -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);
}


Expand Down

0 comments on commit 4bba09a

Please sign in to comment.