Skip to content

Improve error message while validating config/database.yml

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.

Related issue

Related to #369874 (closed)

Merge request reports