UKHomeOffice / lev

Life Event Verification service prototype monorepo
https://lev-docs.netlify.app/
0 stars 1 forks source link

fix: error messages #42

Open haggishunt56 opened 2 years ago

haggishunt56 commented 2 years ago

Amendments made to Births page to display a more user friendly error message when the user searches for a record which doesn't exist. Implemented a new 'friendlyMessage' function which currently contains two error types and returns an appropriate message to the user. This function makes it easy to add additional error messages as they are needed. If an error is presented which this function cannot (yet) handle, the error is displayed as-is without any modifications.

This PR addresses issue #30