Fix 500 on Changelog config
requested to merge 390125-changelog-api-returns-500-when-changelog-configuration-file-has-an-invalid-indentation into master
What does this MR do and why?
Problem
When the changelog config file is loaded using YAML.safe_load, any error returned is not handled thereby resulting in a 500 status from the caller.
Solution
Handle the YAML.safe_load exception and return a user friendly error message
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
See reproduction steps in issue: #390125 (closed)
Related to #390125 (closed)
Edited by Olaoluwa Oluro