Skip to content

Commit

Permalink
add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
joefong-nhs committed Jun 10, 2024
1 parent 7e43c46 commit 7026fb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lambdas/services/statistical_report_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def get_statistic_data(self) -> LoadedStatisticData:
"Please check whether the data collection lambda worked properly.",
{"Result": "Statistic data not available."},
)
raise StatisticDataNotFoundException()
raise StatisticDataNotFoundException(
f"No statistic data can be found during the period {self.report_period}"
)

return loaded_data

Expand Down

0 comments on commit 7026fb4

Please sign in to comment.