Crown-Commercial-Service / digitalmarketplace-admin-frontend

Frontend administration application for the digital marketplace
MIT License
5 stars 15 forks source link

Show errors when editing declaration #871

Closed bjgill closed 2 years ago

bjgill commented 2 years ago

Sourcing admins are able to edit supplier declarations. The page has no error handling, so any errors will result in an unhelpful 500 page. Update the error handling to match that for editing services. Now, if a sourcing admin makes an invalid edit, they will get a message explaining why their change is invalid.

No associated ticket - I just noticed this while looking at how modern slavery statements are handled. I'll port this to 1.5 once merged.

Screenshots of the banner and inline text:

Screenshot 2022-06-08 at 17 12 47

Screenshot 2022-06-08 at 17 12 52