RED-2271: Make sure this debug feature is deactivated before delivering the code in production.
This commit is contained in:
parent
7e318b20ac
commit
c242e44aac
@ -59,7 +59,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);
|
||||
@ -96,7 +96,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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user