Pull request #77: RED-2271: Make sure this debug feature is deactivated before delivering the code in production.

Merge in RED/redaction-report-service from RED-2271-rrs1 to master

* commit '74db599797f6f03b22e82c04e0aae416f97dab8b':
  RED-2271: Make sure this debug feature is deactivated before delivering the code in production.
This commit is contained in:
Ali Oezyetimoglu 2021-09-30 12:31:02 +02:00 committed by Dominique Eiflaender
commit e2eb12d13b

View File

@ -57,7 +57,7 @@ public class ReportGenerationService {
MultiFileWorkbook multiFileWorkbook = new MultiFileWorkbook(workbook, templateId);
multiFileWorkbooks.add(multiFileWorkbook);
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException("Could not generate multifile excel report.");
}
} else {
singleFilesTemplates.add(reportTemplate);
@ -94,7 +94,7 @@ public class ReportGenerationService {
storedFileInformation.add(new StoredFileInformation(reportMessage.getFileIds()
.get(j), storageId, ReportType.EXCEL_TEMPLATE_SINGLE_FILE, reportTemplate.getTemplateId()));
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException("Could not generate singlefile excel report.");
}
} else {
byte[] template = wordReportGenerationService.generateReport(ReportType.WORD_SINGLE_FILE, reportEntries, reportMessage.getDossierTemplateId(), reportTemplate, fileStatus, project);