Skip to content

Fix missing example from valid_usage! error message

Oscar Tovar requested to merge otovar/fix-feature-flag-error-message into master

What does this MR do and why?

The hash used to reference the example in valid_usage! used symbols to reference values by key. Since we were passing in a string, the lookup would always fail, and the example in the error message would fail to display as a result. This has been fixed by casting to the expected key type (Symbol) in the hash lookup.

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.

Edited by Oscar Tovar

Merge request reports

Loading