Improve error message while validating config/database.yml
requested to merge 369874-demote-pg-readonlysqltransaction-in-gitlab-db-validate_config-from-error-to-warning into master
What does this MR do and why?
In !89696 (merged), we introduced additional handling of an error when doing an UPSERT on a read-only database. When a user encounters this scenario, they are presented with a message stating "ERROR: cannot execute INSERT in a read-only transaction". The verbiage is confusing to users because it implies it is ERROR severity, but it should be a WARNING since this does not break anything or halt any processes. So, this MR improves the error message wording to avoid confusion.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related issue
Related to #369874 (closed)