moja-global / FLINT.Cloud

The project aims to demonstrate a continuous deployment pipeline for FLINT.
Mozilla Public License 2.0
27 stars 66 forks source link

fix: Added a helpful error message #208

Closed clintonMF closed 1 year ago

clintonMF commented 1 year ago

Pull Request Template

Description

Currently running the dynamic endpoint without uploading files prior returns a 500 internal server error, This error message is not helpful to the user.

I used an exception to catch errors and return a more helpful message which tells the user to upload files before running the dynamic endpoint.

Fixes # https://github.com/moja-global/FLINT.Cloud/issues/207

Type of change

How Has This Been Tested?

When you run the dynamic endpoint without uploading the files prior, the endpoint will return an error message telling you to do so.

image

...

Checklist:

aornugent commented 1 year ago

@Palaksharma23 - this looks ok to merge, I think?