Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Universal/DisallowAlternativeSyntax: improve error message #159

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 14, 2022

Universal/DisallowAlternativeSyntax: improve the error message [1]

When the $allowWithInlineHTML property is set to true, the error message could be regarded as confusing and lead to (unfounded) bug reports as the error message doesn't indicate that alternative control structures, in that case, are still allowed in combination with inline HTML.

This commit adjusts the error message based on the $allowWithInlineHTML property to be more descriptive.

Universal/DisallowAlternativeSyntax: improve the error message [2]

Improve the readability of the error message by moving the variable part to the end of the message.

Universal/DisallowAlternativeSyntax: minor tweak

Group the setting of the $code and $data variables for the error message with the conditions which may adjust their value.

When the `$allowWithInlineHTML` property is set to `true`, the error message could be regarded as confusing and lead to (unfounded) bug reports as the error message doesn't indicate that alternative control structures, in that case, are still allowed in combination with inline HTML.

This commit adjusts the error message based on the `$allowWithInlineHTML` property to be more descriptive.
Improve the readability of the error message by moving the variable part to the end of the message.
Group the setting of the `$code` and `$data` variables for the error message with the conditions which may adjust their value.
@jrfnl jrfnl force-pushed the universal/disallowalternativesyntax-improve-error-message branch from 674650e to dfc686e Compare November 14, 2022 00:27
@jrfnl jrfnl merged commit 538b90b into develop Nov 14, 2022
@jrfnl jrfnl deleted the universal/disallowalternativesyntax-improve-error-message branch November 14, 2022 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant