Rescue validation errors when uploading terraform modules
What does this MR do and why?
Rescue from validation errors when uploading terraform modules
If a terraform module uploaded with invalid name, a validation error will be raised. However, the error will not be gracefully rescued and returned to the user. It will cause a 500 internal server error. In this MR, we rescue from such errors and return them to the user with the appropriate status code and error message.
Changelog: fixed
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Related to #459055 (closed)